Sha256: a43416e7ffac37bb07e37292cf2a925da1bb01cd21960dba9e219ca03b9d0011
Contents?: true
Size: 1.22 KB
Versions: 6
Compression:
Stored size: 1.22 KB
Contents
dir = File.dirname(__FILE__) require "#{dir}/../../example_helper" module RR module Expectations describe AnyArgumentExpectation, "==" do before do @expectation = AnyArgumentExpectation.new end it "returns true when comparing with another AnyArgumentExpectation" do @expectation.should == AnyArgumentExpectation.new end it "returns false when comparing with ArgumentEqualityError" do @expectation.should_not == ArgumentEqualityError.new(1) end end describe AnyArgumentExpectation, "#exact_match?" do before do @expectation = AnyArgumentExpectation.new end it "returns false" do @expectation.should_not be_exact_match(1, 2, 3) @expectation.should_not be_exact_match(1, 2) @expectation.should_not be_exact_match(1) @expectation.should_not be_exact_match() @expectation.should_not be_exact_match("does not match") end end describe AnyArgumentExpectation, "#wildcard_match?" do it "returns true" do @expectation = AnyArgumentExpectation.new @expectation.should be_wildcard_match(1, 2, 3) @expectation.should be_wildcard_match("whatever") @expectation.should be_wildcard_match("whatever", "else") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems