Skip to content

Commit 44a64ce

Browse files
committed
Correctly output driven_by setting for Development Containers
Currently, `ENV["SELENIUM_HOST"]` is evaluated when generating a file. So the result was the following. ``` driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ], options: { browser: :remote, url: "http://:4444" } ``` This PR fixes to output the URL setting just as a string. The after result is the following. ``` driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ], options: { browser: :remote, url: "http://#{ENV["SELENIUM_HOST"]}:4444" } ```
1 parent 827f4ef commit 44a64ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/devcontainer/devcontainer_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def local_rails_mount
148148
end
149149

150150
def system_test_configuration
151-
<<~RUBY
151+
<<~'RUBY'
152152
if ENV["CAPYBARA_SERVER_PORT"]
153153
served_by host: "rails-app", port: ENV["CAPYBARA_SERVER_PORT"]
154154

0 commit comments

Comments
 (0)