Skip to content

Commit 70b0e99

Browse files
author
Sam Phippen
committed
Fix capybara pins for older rubies
1 parent ad0e932 commit 70b0e99

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
@@ -40,6 +40,10 @@
4040
end
4141

4242
if Rails::VERSION::STRING >= "5.1.0"
43+
if RUBY_VERSION < "2.4"
44+
gsub_file "Gemfile", /.*capybara.*/, "gem 'capybara', '~> 3.10.0'"
45+
end
46+
4347
if Rails::VERSION::STRING >= "5.2.0" && RUBY_VERSION < '2.3.0'
4448
gsub_file "Gemfile", /.*chromedriver-helper.*/, "gem 'webdrivers', '< 4.0.0'"
4549
else

0 commit comments

Comments
 (0)