2016-03-07 19:52:19 -05:00
|
|
|
# frozen_string_literal: true
|
2011-08-22 05:27:45 -04:00
|
|
|
require 'spec_helper'
|
2016-10-13 22:50:03 -04:00
|
|
|
require 'selenium-webdriver'
|
2011-08-22 05:27:45 -04:00
|
|
|
|
2014-04-03 13:25:03 -04:00
|
|
|
RSpec.describe Capybara::Selenium::Driver do
|
2011-08-22 05:32:35 -04:00
|
|
|
it "should exit with a zero exit status" do
|
2016-10-13 22:50:03 -04:00
|
|
|
options = { browser: (ENV['SELENIUM_BROWSER'] || :firefox).to_sym }
|
|
|
|
options[:desired_capabilities] = Selenium::WebDriver::Remote::Capabilities.firefox(marionette: false) if ENV['LEGACY_FIREFOX']
|
|
|
|
browser = Capybara::Selenium::Driver.new(TestApp, options ).browser
|
2013-11-14 12:43:36 -05:00
|
|
|
expect(true).to eq(true)
|
2011-08-22 05:27:45 -04:00
|
|
|
end
|
|
|
|
end
|