Skip to content

Commit 8958db6

Browse files
committed
Fix tests
1 parent 4d44228 commit 8958db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/inertia/install/install_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def install_example_page
164164

165165
say 'Adding a route for the example Inertia controller'
166166
route "get 'inertia-example', to: 'inertia_example#index'"
167-
unless File.read('config/routes.rb').match?(/^\s*root\s+/)
167+
unless File.read(file_path('config/routes.rb')).match?(/^\s*root\s+/)
168168
route "root 'inertia_example#index'"
169169
end
170170

0 commit comments

Comments
 (0)