Sha256: 81ce91e5c0eea490c7491ecb94d453a35ca867836629c899b89babda25acc028

Contents?: true

Size: 660 Bytes

Versions: 6

Compression:

Stored size: 660 Bytes

Contents

require 'spec_helper'

describe TestHarness do
  describe ".autoload" do
    it "delegates autoload to all three concerns" do
      TestHarness::UIView.should_receive(:autoload)
      TestHarness::UIDriver.should_receive(:autoload)
      TestHarness::Given.should_receive(:autoload)

      TestHarness.autoload
    end

    it "actually loads all givens and registers all UI components" do
      TestHarness.autoload

      defined?(FakeHarness::Given::GivenTest).should be_true
      [FakeHarness::UiTest::UIView, FakeHarness::UiTest::UIDriver].each do |kl|
        TestHarness.registered_components.map(&:class).should include(kl)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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