Displaying 2 results from an estimated 2 matches for "stations_controller_spec".
2007 Jun 15
6
problem getting started with stubbing in rails controller specs
...ot; do
Station.should_receive(:find).with(:all).and_return
(@mock_stations)
end
end
It fails with this error:
Spec::Mocks::MockExpectationError in ''GET to index should find stations''
Station expected :find with (:all) once, but received it 0 times
./spec/controllers/stations_controller_spec.rb:22:
I can see in the log that the database is not hit for Station.find
(:all), so the stubbing seems to have worked. Guess I''m stuck. Thanks
for any hint to get me going again!
Ingo
_______________________________________________
rspec-users mailing list
rspec-users at rubyforge.o...
2007 Jun 14
4
Can''t run RSpec files in TextMate
Hi
Not sure if this is the place to ask this or not. I''ve upgraded to
RSpec 1.0.5, installed the latest TextMate bundle, but whenever I do
"Run Behaviour Descriptions in selected files/directories" I get this:
/Users/ashleymoran/Library/Application Support/TextMate/Pristine Copy/
Bundles/RSpec.tmbundle/Support/lib/spec_mate.rb:18:in `run_files'':
private method