We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fba0ca0 commit 120a0c4Copy full SHA for 120a0c4
spec/annotate/annotate_routes_spec.rb
@@ -19,7 +19,7 @@ def mock_file(stubs={})
19
20
before(:each) do
21
File.should_receive(:exists?).with("config/routes.rb").and_return(true)
22
- AnnotateRoutes.should_receive(:`).with("rake routes").and_return("bad line\ngood line")
+ AnnotateRoutes.should_receive(:`).with("rake routes").and_return("(in /bad/line)\ngood line")
23
File.should_receive(:open).with("config/routes.rb", "wb").and_yield(mock_file)
24
AnnotateRoutes.should_receive(:puts).with("Route file annotated.")
25
end
0 commit comments