Skip to content

Commit 120a0c4

Browse files
committed
Make this mock more representative of actual rake output.
1 parent fba0ca0 commit 120a0c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/annotate/annotate_routes_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def mock_file(stubs={})
1919

2020
before(:each) do
2121
File.should_receive(:exists?).with("config/routes.rb").and_return(true)
22-
AnnotateRoutes.should_receive(:`).with("rake routes").and_return("bad line\ngood line")
22+
AnnotateRoutes.should_receive(:`).with("rake routes").and_return("(in /bad/line)\ngood line")
2323
File.should_receive(:open).with("config/routes.rb", "wb").and_yield(mock_file)
2424
AnnotateRoutes.should_receive(:puts).with("Route file annotated.")
2525
end

0 commit comments

Comments
 (0)