Hi,
I used your code but it does not work either.
To eliminate the possibility of a problem coming from my application I
made a new Rails 3.1.3 app from scratch and scaffold Category stuff.
And the result is that view specs start working with either issue #255
solution or yours but controller, r
Hi all,
I want to write a test grid over rspec && spork.
For example we have grid with several nodes. Each has spork running on it.
Master node accept some filters like --tag tag:value to run
It select all examples for this conditions and distribute them through
nodes with syntax like
rspec path
In custom formatters, is there a proper way to capture $stdout/$stderr?
I have a formally structured output format, so I need to prevent extraneous
output that might come from test code.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rub
Hi,
I have a class which creates a WEBrick::HTTPServer, and in my tests I
obviously do not want to instantiate/open this server, as (a) its a
resource waste (b) would hang the test (c) is not under-test.
So :-
1. How can I stub it out?
2. How can I mock the call to #mount_proc, such that, whe
Ideas?
ruby-1.9.2-p290 :002 > require 'rspec'
=> true
ruby-1.9.2-p290 :003 > RSpec::Version::STRING
=> "2.8.0"
ruby-1.9.2-p290 :004 > describe 'division by zero' do
ruby-1.9.2-p290 :005 > expect { 2/0 }.to raise_error
ruby-1.9.2-p290 :006?> end
NoMethodError: undefined method `expect' for
Thanks for all your answers,
I should have said I'm very used to the workflow of integration specs
and capybara.
My question is really oriented towards API testing and particularly on
the use of Active Resource.
Basically, I'd like to:
a- create ActiveResource classes in rspec/support
b- run my
On Sun, Jan 15, 2012 at 6:10 PM, Alexandre Gomes wrote:
> Ideas?
>
>
> ruby-1.9.2-p290 :002 > require 'rspec'
> => true
> ruby-1.9.2-p290 :003 > RSpec::Version::STRING
> => "2.8.0"
> ruby-1.9.2-p290 :004 > describe 'division by zero' do
> ruby-1.9.2-p290 :005 > expect { 2/0 }.to raise_error