search for: test_zzz

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

Did you mean: test_fuzz
2007 Jan 17
8
Mocha Mock''s hanging on after test run?
...nning mocha (0.3.2) against Rails core and just found an issue where the mock doesn''t go away after the test is run. For example: def test_reset_bang_doesn_reinstall_named_routes ActionController::Routing::Routes.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,...