Skip to content

Commit 6350298

Browse files
Sam Phippenbenoittgt
authored andcommitted
Fix capybara pins for older rubies
1 parent 24827de commit 6350298

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Gemfile-rails-dependencies

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,3 @@ else
3535
end
3636
gem 'activerecord-jdbcsqlite3-adapter', platforms: [:jruby]
3737
end
38-

example_app_generator/generate_app.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
else
4646
gsub_file "Gemfile", /.*chromedriver-helper.*/, "gem 'webdrivers'"
4747
end
48+
if RUBY_VERSION < "2.4"
49+
gsub_file "Gemfile", /.*capybara.*/, "gem 'capybara', '~> 3.10.0'"
50+
end
51+
gsub_file "Gemfile", /.*chromedriver-helper.*/, "gem 'webdrivers'"
4852
end
4953

5054
if Rails::VERSION::STRING >= '5.2.0' && Rails::VERSION::STRING < '6'

0 commit comments

Comments
 (0)