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