Sha256: ac5035f8e30a42e373086a40ed89bbf27e1f295ca833cebff17b67b88f68d273

Contents?: true

Size: 704 Bytes

Versions: 10

Compression:

Stored size: 704 Bytes

Contents

require 'spec_helper'

class TestHelperWrapper
  extend TestHarness::TestHelper
end

describe TestHarness::TestHelper do
  [:configuration, :given, :uiv, :uid, :mm, :to].each do |method|
    it "delegates #{method} to TestHarness" do
      TestHarness.should_receive(method).and_return('sleepy_monkeys')
      TestHelperWrapper.send(method).should == 'sleepy_monkeys'
    end
  end

  it "adds methods to access given & ui components" do
    TestHarness.autoload
    TestHelperWrapper.given.a_boring_test.should ==
      :a_fancy_and_inspiring_result
    TestHelperWrapper.uiv.ui_test.lookies.should == :lovely_landscapes
    TestHelperWrapper.uid.ui_test.dainty_gloves.should == :handy_holders
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
test-harness-0.6.3 spec/lib/test_helper_spec.rb
test-harness-0.6.2 spec/lib/test_helper_spec.rb
test-harness-0.6.1 spec/lib/test_helper_spec.rb
test-harness-0.6.0 spec/lib/test_helper_spec.rb
test-harness-0.4.14 spec/lib/test_helper_spec.rb
test-harness-0.4.13 spec/lib/test_helper_spec.rb
test-harness-0.4.12 spec/lib/test_helper_spec.rb
test-harness-0.4.11 spec/lib/test_helper_spec.rb
test-harness-0.4.10 spec/lib/test_helper_spec.rb
test-harness-0.4.9 spec/lib/test_helper_spec.rb