Sha256: 77bd6307d22a49c442c57b8acbddccabf133e01394ed2730f669042544418e70
Contents?: true
Size: 834 Bytes
Versions: 4
Compression:
Stored size: 834 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 defined?(FakeHarness::Given::Dandylions::GivenTest).should be_true [FakeHarness::UiTest::UIView, FakeHarness::UiTest::UIDriver, FakeHarness::Dandylions::UiTest::UIView, FakeHarness::Dandylions::UiTest::UIDriver].each do |kl| TestHarness.registered_components.map(&:class).should include(kl) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems