Sha256: 36ef7f604e276bda5ca1701e6b76d6faaf552c6991412a568248d063d0424d3c

Contents?: true

Size: 497 Bytes

Versions: 22

Compression:

Stored size: 497 Bytes

Contents

require 'spec_helper'

describe 'Watir-specific tests', type: :feature, js: true do
  before do
    proxy.stub('http://www.example.com/get').and_return(
      text: 'Success!'
    )
  end

  it 'should raise a NameError if an invalid browser driver is specified' do
    expect{Billy::Browsers::Watir.new :invalid}.to raise_error(NameError)
  end

  it 'should respond to a stubbed GET request' do
    @browser.goto 'http://www.example.com/get'
    expect(@browser.text).to eq 'Success!'
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
puffing-billy-3.0.0 spec/lib/billy/watir/watir_spec.rb
puffing-billy-2.4.1 spec/lib/billy/watir/watir_spec.rb
puffing-billy-2.4.0 spec/lib/billy/watir/watir_spec.rb
puffing-billy-2.3.1 spec/lib/billy/watir/watir_spec.rb
puffing-billy-2.3.0 spec/lib/billy/watir/watir_spec.rb
puffing-billy-2.2.0 spec/lib/billy/watir/watir_spec.rb
puffing-billy-2.1.1 spec/lib/billy/watir/watir_spec.rb
puffing-billy-2.1.0 spec/lib/billy/watir/watir_spec.rb
puffing-billy-2.0.0 spec/lib/billy/watir/watir_spec.rb
puffing-billy-1.1.3 spec/lib/billy/watir/watir_spec.rb
puffing-billy-1.1.2 spec/lib/billy/watir/watir_spec.rb
puffing-billy-1.1.1 spec/lib/billy/watir/watir_spec.rb
puffing-billy-1.1.0 spec/lib/billy/watir/watir_spec.rb
puffing-billy-1.0.0 spec/lib/billy/watir/watir_spec.rb
puffing-billy-0.12.0 spec/lib/billy/watir/watir_spec.rb
puffing-billy-0.11.1 spec/lib/billy/watir/watir_spec.rb
puffing-billy-0.11.0 spec/lib/billy/watir/watir_spec.rb
puffing-billy-0.10.1 spec/lib/billy/watir/watir_spec.rb
puffing-billy-0.10.0 spec/lib/billy/watir/watir_spec.rb
puffing-billy-0.9.2 spec/lib/billy/watir/watir_spec.rb