Skip to content

Commit

Permalink
Limit webdriver removal to Rails 7
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Oct 14, 2023
1 parent 059077c commit c39a286
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions example_app_generator/generate_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
gsub_file "Gemfile", /.*debug.*/, ''
gsub_file "Gemfile", /.*puma.*/, ''
gsub_file "Gemfile", /.*bootsnap.*/, ''
gsub_file "Gemfile", /.*chromedriver-helper.*/, '' if RUBY_VERSION >= "3.0" && Rails::VERSION::STRING >= '7'
gsub_file "Gemfile", /.*webdrivers.*/, '' if RUBY_VERSION >= "3.0"
if RUBY_VERSION >= "3.0" && Rails::VERSION::STRING >= '7'
gsub_file "Gemfile", /.*chromedriver-helper.*/, ''
gsub_file "Gemfile", /.*webdrivers.*/, ''
end

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

Expand Down

0 comments on commit c39a286

Please sign in to comment.