Skip to content

Commit 5908d89

Browse files
author
Sam Phippen
committed
Fix capybara pins for older rubies
1 parent 71c88f2 commit 5908d89

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
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
4346
gsub_file "Gemfile", /.*selenium-webdriver.*/, "gem 'selenium-webdriver', '<= 3.14'"
4447
end
4548

0 commit comments

Comments
 (0)