Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Jan 2, 2024
1 parent 8ac2af2 commit 361f296
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion railties/test/generators/scaffold_generator_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,11 @@ def test_scaffold_generator_on_revoke_does_not_mutilate_routes
route_path = File.expand_path("config/routes.rb", destination_root)
content = File.read(route_path)

# Remove all of the comments, blank lines, and default health controller from the routes file
# Remove all of the comments, blank lines, and default actions from the routes file
content.gsub!(/^ \#.*\n/, "")
content.gsub!(/^ get "up".*\n/, "")
content.gsub!(/^ get "service-worker".*\n/, "")
content.gsub!(/^ get "manifest".*\n/, "")
content.gsub!(/^\n/, "")

File.write(route_path, content)
Expand Down

0 comments on commit 361f296

Please sign in to comment.