spec/mri/integration/browser_spec.rb in opal-rspec-0.5.0 vs spec/mri/integration/browser_spec.rb in opal-rspec-0.6.0.beta1
- old
+ new
@@ -1,8 +1,7 @@
require 'rspec'
require 'capybara/rspec'
-require 'capybara-webkit'
# Use Rack config exactly as shipped in the GEM
Capybara.app = Rack::Builder.new_from_string(File.read('config.ru'))
describe 'browser formatter', type: :feature do
@@ -23,9 +22,7 @@
expect(page).to have_content '142 examples, 40 failures, 12 pending'
end
end
end
- # Travis version (4.x QT) might be causing this to fail
- #include_examples :browser, :webkit, lambda {|page| page.driver.error_messages}
include_examples :browser, :selenium, lambda {|page| page.evaluate_script('window.jsErrors') }
end