Skip to content

Commit d0e3089

Browse files
committed
Limit webdriver removal to Rails 7
1 parent a110b0f commit d0e3089

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

example_app_generator/generate_app.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
gsub_file "Gemfile", /.*debug.*/, ''
2424
gsub_file "Gemfile", /.*puma.*/, ''
2525
gsub_file "Gemfile", /.*bootsnap.*/, ''
26-
gsub_file "Gemfile", /.*chromedriver-helper.*/, '' if RUBY_VERSION >= "3.0" && Rails::VERSION::STRING >= '7'
27-
gsub_file "Gemfile", /.*webdrivers.*/, '' if RUBY_VERSION >= "3.0"
26+
if RUBY_VERSION >= "3.0" && Rails::VERSION::STRING >= '7'
27+
gsub_file "Gemfile", /.*chromedriver-helper.*/, ''
28+
gsub_file "Gemfile", /.*webdrivers.*/, ''
29+
end
2830

2931
append_to_file 'Gemfile', "gem 'rails-controller-testing'\n"
3032

0 commit comments

Comments
 (0)