Skip to content

Commit

Permalink
Switch from chromedriver-helpers to webdrivers.
Browse files Browse the repository at this point in the history
This commit replaces the deprecated chromedriver-helpers gem with the still
supported webdrivers gem.
  • Loading branch information
georgebrock committed Jun 12, 2020
1 parent 5699fda commit 92100ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/suspenders/generators/js_driver_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
module Suspenders
class JsDriverGenerator < Generators::Base
def add_gems
gem "capybara-selenium", group: :test
gem "chromedriver-helper", group: :test
gem "webdrivers", group: :test
Bundler.with_clean_env { run "bundle install" }
end

Expand Down
5 changes: 4 additions & 1 deletion templates/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
config.order = :random
end

WebMock.disable_net_connect!(allow_localhost: true)
WebMock.disable_net_connect!(
allow_localhost: true,
allow: "chromedriver.storage.googleapis.com",
)

# Only allow Timecop with block syntax
Timecop.safe_mode = true

0 comments on commit 92100ce

Please sign in to comment.