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
end
end
...
...
@@ -297,81 +325,86 @@ describe AnnotateRoutes do
end
it'should remove trailing annotation and trim trailing newlines, but leave leading newlines alone'do