Sha256: 857ccb23f457c31906f03791b259d95ffd4b64bd47fb29f5cce9e65f1c7425a9
Contents?: true
Size: 911 Bytes
Versions: 53
Compression:
Stored size: 911 Bytes
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../../spec_helper") module RR module Expectations describe ArgumentEqualityExpectation do context "with a boolean matcher" do attr_reader :expectation before do @expectation = ArgumentEqualityExpectation.new(boolean) end describe "#wildcard_match?" do before do expectation = ArgumentEqualityExpectation.new(boolean) end context "when passed a Boolean" do it "returns true" do expectation.should be_wildcard_match(true) expectation.should be_wildcard_match(false) end end context "when not passed a Boolean" do it "returns false" do expectation.should_not be_wildcard_match(:not_a_boolean) end end end end end end end
Version data entries
53 entries across 49 versions & 9 rubygems