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