Skip to content

Commit 85643cd

Browse files
authored
Merge pull request #2138 from rspec/fix-travis-build
Pin webdrivers on older ruby.
2 parents df5428a + 38ebc96 commit 85643cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

example_app_generator/generate_app.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@
3333
end
3434

3535
if Rails::VERSION::STRING >= "5.1.0"
36-
gsub_file "Gemfile", /.*chromedriver-helper.*/, "gem 'webdrivers'"
36+
if Rails::VERSION::STRING >= "5.2.0" && RUBY_VERSION < '2.3.0'
37+
gsub_file "Gemfile", /.*chromedriver-helper.*/, "gem 'webdrivers', '< 4.0.0'"
38+
else
39+
gsub_file "Gemfile", /.*chromedriver-helper.*/, "gem 'webdrivers'"
40+
end
3741
end
3842

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

0 commit comments

Comments
 (0)