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

Version Path
kookaburra-1.2.0 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-1.1.0 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-1.0.0 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.27.0 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.26.1 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.26.0 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.25.0 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.24.1 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.24.0 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.23.1 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.23.0 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.22.3 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.22.2 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.22.1 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb
kookaburra-0.22.0 spec/kookaburra/ui_driver/ui_component/address_bar_spec.rb