search for: namedroutecollection

Displaying 1 result from an estimated 1 matches for "namedroutecollection".

2007 Jan 17
8
Mocha Mock''s hanging on after test run?
...utes.named_routes.expects(:install).never @session.reset! end def test_zzz puts ActionController::Routing::Routes.named_routes.inspect assert !ActionController::Routing::Routes.named_routes end The print when test_zzz is run gives this: #<ActionController::Routing::RouteSet::NamedRouteCollection:0x14e0da8 @mocha=#<Mocha::Mock:0x2333504 @__mock_name=nil, @expectations=[#<Mocha::Expectation:0x2333158 @count=0, @parameter_block=nil, @backtrace=["test/controller/integration_test.rb:146:in `test_reset_bang_doesn_reinstall_named_routes''", "/usr/local/lib/ruby/1.8/te...