Sha256: a7e7b69748954ad24612922f46692292e457a982a0e0dd9d2eeeeb6fb7c35989

Contents?: true

Size: 874 Bytes

Versions: 1

Compression:

Stored size: 874 Bytes

Contents

require File.expand_path('../spec_helper', __FILE__)

describe Capybara::Driver::Terminus do
  before do
    @driver = Capybara::Driver::Terminus.new(TestApp)
    select_browser
  end

  after do
    Terminus.browser.return_to_dock unless ENV['USER_AGENT']
  end

  single_window = %w[Android iPad iPhone PhantomJS].include?(ENV['USER_AGENT'])

  it_should_behave_like "driver"
  it_should_behave_like "driver with javascript support"
  it_should_behave_like "driver with resynchronization support"
  it_should_behave_like "driver with header support"
  it_should_behave_like "driver with status code support"
  it_should_behave_like "driver with frame support"
  it_should_behave_like "driver with support for window switching" unless single_window
  it_should_behave_like "driver with cookies support"
  it_should_behave_like "driver with infinite redirect detection"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
terminus-0.5.0 spec/1.1/terminus_driver_spec.rb