Skip to content

Commit 361f296

Browse files
committed
Fix test
1 parent 8ac2af2 commit 361f296

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

railties/test/generators/scaffold_generator_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,11 @@ def test_scaffold_generator_on_revoke_does_not_mutilate_routes
363363
route_path = File.expand_path("config/routes.rb", destination_root)
364364
content = File.read(route_path)
365365

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

371373
File.write(route_path, content)

0 commit comments

Comments
 (0)