search for: mock_stat

Displaying 2 results from an estimated 2 matches for "mock_stat".

Did you mean: lock_stat
2007 Jun 15
6
problem getting started with stubbing in rails controller specs
...keep message threads separate. Have you tried setting up your expectation before issuing the get statement? For example, take this out of the setup block: get ''index'', :locale => ''en'' and move it after: Station.should_receive(:find).with(:all).and_return(@mock_stations) I set-up inter-object expectations before exercising the controller action. Does this help? -Anthony PS: If you could be more specific about which concepts about mocks and stubs are confusing you, I''d be happy to try and help.l ---------- Hi, I am getting started with writi...
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