Fix test
This commit is contained in:
parent
8ac2af29ad
commit
361f296d05
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user