Sha256: f3a4afcc1622aef790bc206da752cf6ff6cf3e35e847e02ca787651afac96279
Contents?: true
Size: 841 Bytes
Versions: 12
Compression:
Stored size: 841 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 context "when passed a Boolean" do it "returns true" do expect(expectation).to be_wildcard_match([true], {}) expect(expectation).to 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
12 entries across 12 versions & 1 rubygems