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/)
<<~EOS.chomp
AnnotateRoutes.do_annotationstimestamp: true
another good line
good line
EOS
end
context'When the route file does not end with an empty line'do