Sha256: 529e1faf78d75e8b27c254b6121b4b5ccea3732f0d5b2e1222078f7c51ff7cc1

Contents?: true

Size: 520 Bytes

Versions: 6

Compression:

Stored size: 520 Bytes

Contents

require 'spec_helper'

describe "UIComponentHelper" do
  describe "#browser" do
    it "raises error for missing browser" do
      TestHarness.autoload
      expect {FakeHarness::UiTest::UIView.new.browser}.to raise_error(MissingConfiguration, 'TestHarness.browser must be defined')
    end

    it 'returns browser defined in TestHarness.configuration' do
      TestHarness.configuration.browser = :whatever
      TestHarness.autoload
      FakeHarness::UiTest::UIView.new.browser.should == :whatever
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
test-harness-0.4.14 spec/lib/ui_component_helper_spec.rb
test-harness-0.4.13 spec/lib/ui_component_helper_spec.rb
test-harness-0.4.12 spec/lib/ui_component_helper_spec.rb
test-harness-0.4.11 spec/lib/ui_component_helper_spec.rb
test-harness-0.4.10 spec/lib/ui_component_helper_spec.rb
test-harness-0.4.9 spec/lib/ui_component_helper_spec.rb