expect(@mock_file).toreceive(:puts).with(/ActionController::Routing...\nfoo\n\n# == Route Map \(Updated \d{4}-\d{2}-\d{2} \d{2}:\d{2}\)\n#\n# another good line\n# good line\n/)
expect(mock_file).toreceive(:puts).with(/ActionController::Routing...\nfoo\n\n# == Route Map \(Updated \d{4}-\d{2}-\d{2} \d{2}:\d{2}\)\n#\n# another good line\n# good line\n/)
AnnotateRoutes.do_annotationstimestamp: true
AnnotateRoutes.do_annotationstimestamp: true
end
end
end
end
...
@@ -297,7 +325,7 @@ describe AnnotateRoutes do
...
@@ -297,7 +325,7 @@ describe AnnotateRoutes do
end
end
it'should remove trailing annotation and trim trailing newlines, but leave leading newlines alone'do
it'should remove trailing annotation and trim trailing newlines, but leave leading newlines alone'do