Sha256: 4d88c539444ecf8608f3e61944f7da8404fe8b94c60b0ac9adc673b14bf087e0
Contents?: true
Size: 485 Bytes
Versions: 3
Compression:
Stored size: 485 Bytes
Contents
if Spree.version.to_f < 3.7 module CapybaraHelper def wait_for(options = {}) default_options = { error: nil, seconds: 5 }.merge(options) Selenium::WebDriver::Wait.new(timeout: default_options[:seconds]).until { yield } rescue Selenium::WebDriver::Error::TimeOutError default_options[:error].nil? ? false : raise(default_options[:error]) end end RSpec.configure do |config| config.include CapybaraHelper, type: :feature end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_gateway-3.7.5 | spec/support/capybara_helper.rb |
spree_gateway-3.7.4 | spec/support/capybara_helper.rb |
spree_gateway-3.7.3 | spec/support/capybara_helper.rb |