2016-03-07 19:52:19 -05:00
|
|
|
# frozen_string_literal: true
|
2018-02-28 19:11:41 -05:00
|
|
|
|
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
|
2018-07-10 17:18:39 -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 }
|
2019-07-15 17:49:21 -04:00
|
|
|
browser = described_class.new(TestApp, options).browser
|
2018-04-27 14:01:47 -04:00
|
|
|
expect(browser).to be_truthy
|
|
|
|
expect(true).to eq(true) # rubocop:disable RSpec/ExpectActual
|
2011-08-22 05:27:45 -04:00
|
|
|
end
|
|
|
|
end
|