Sha256: 16123837970530cbd68c27932bcdd61ce9440d5fc9d65a00e206fa6deeec3f3f
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
require 'kookaburra/configuration' require 'support/shared_examples/it_has_a_dependency_accessor' describe Kookaburra::Configuration do it_behaves_like :it_has_a_dependency_accessor, :api_driver_class it_behaves_like :it_has_a_dependency_accessor, :ui_driver_class it_behaves_like :it_has_a_dependency_accessor, :browser it_behaves_like :it_has_a_dependency_accessor, :app_host it_behaves_like :it_has_a_dependency_accessor, :mental_model it_behaves_like :it_has_a_dependency_accessor, :logger describe '#server_error_detection' do it 'returns the block that it was last given' do block = lambda { 'foo' } subject.server_error_detection(&block) expect(subject.server_error_detection).to eq block end end describe '#app_host_uri' do it 'returns a URI version of the #app_host attribute via URI.parse' do expect(URI).to receive(:parse) \ .with('http://example.com') \ .and_return(:a_parsed_uri) subject.app_host = 'http://example.com' subject.app_host_uri.should == :a_parsed_uri end it 'changes if #app_host changes' do allow(URI).to receive(:parse) do |url| url.to_sym end subject.app_host = 'http://example.com' expect(subject.app_host_uri).to eq 'http://example.com'.to_sym subject.app_host = 'http://foo.example.com' expect(subject.app_host_uri).to eq 'http://foo.example.com'.to_sym end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kookaburra-2.0.0 | spec/kookaburra/configuration_spec.rb |