Sha256: e0f3b7b4647b1dfd197ff6ae0ad5aad60c27a5b5cbb0fe912c20588f1dc62cfe
Contents?: true
Size: 971 Bytes
Versions: 15
Compression:
Stored size: 971 Bytes
Contents
require 'kookaburra/ui_driver/ui_component/address_bar' describe Kookaburra::UIDriver::UIComponent::AddressBar do describe '#go_to' do let(:browser) { mock('Capybara::Session').tap do |b| b.should_receive(:visit).with('http://site.example.com') end } let(:configuration) { stub('Configuration', :browser => browser, :app_host => nil, :server_error_detection => nil) } let(:address_bar) { address_bar = Kookaburra::UIDriver::UIComponent::AddressBar.new(configuration) } context 'when given a string' do it 'causes the browser to navigate to the (presumably URL) string' do address_bar.go_to 'http://site.example.com' end end context 'when given a string' do it 'causes the browser to navigate to the (presumably URL) string' do addressable = stub('addressable', :url => 'http://site.example.com') address_bar.go_to addressable end end end end
Version data entries
15 entries across 15 versions & 1 rubygems