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
expect(File).toreceive(:read).with(ROUTE_FILE).and_return("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nActionController::Routing...\nfoo\n\n\n\n\n\n\n\n\n\n\n# == Route Map\n#\n# another good line\n# good line\n")
it'should remove prepended annotation and trim leading newlines, but leave trailing newlines alone'do
it'should remove prepended annotation and trim leading newlines, but leave trailing newlines alone'do
expect(File).toreceive(:read).with(ROUTE_FILE).and_return("# == Route Map\n#\n# another good line\n# good line\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nActionController::Routing...\nfoo\n\n\n\n\n\n\n\n\n\n\n")