Skip to content

Commit

Permalink
Merge pull request #5485 from luisramos0/byeby_phantom_js
Browse files Browse the repository at this point in the history
Rename method refering to phantomjs
  • Loading branch information
sauloperez authored May 22, 2020
2 parents b804036 + 639c1e1 commit 72399cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
RackRequestBlocker.wait_for_requests_complete
end

def restart_phantomjs
def restart_driver
Capybara.send('session_pool').values
.select { |s| s.driver.is_a?(Capybara::Selenium::Driver) }
.each { |s| s.driver.reset! }
Expand All @@ -123,7 +123,7 @@ def restart_phantomjs
ActionController::Base.perform_caching = caching
end

config.before(:all) { restart_phantomjs }
config.before(:all) { restart_driver }

# Geocoding
config.before(:each) { allow_any_instance_of(Spree::Address).to receive(:geocode).and_return([1, 1]) }
Expand Down

0 comments on commit 72399cb

Please sign in to comment.