Sha256: 6804a51582a841e4cb23baa4df72eae18cd3b3b5f4104f62dd3f381649f246ac
Contents?: true
Size: 1.86 KB
Versions: 14
Compression:
Stored size: 1.86 KB
Contents
require File.expand_path("#{File.dirname(__FILE__)}/../../spec_helper") module RR describe DSL do include DSL describe "#anything" do it "returns an Anything matcher" do expect(anything).to eq RR::WildcardMatchers::Anything.new end it "rr_anything returns an Anything matcher" do expect(rr_anything).to eq RR::WildcardMatchers::Anything.new end end describe "#is_a" do it "returns an IsA matcher" do expect(is_a(Integer)).to eq RR::WildcardMatchers::IsA.new(Integer) end it "rr_is_a returns an IsA matcher" do expect(rr_is_a(Integer)).to eq RR::WildcardMatchers::IsA.new(Integer) end end describe "#numeric" do it "returns an Numeric matcher" do expect(numeric).to eq RR::WildcardMatchers::Numeric.new end it "rr_numeric returns an Numeric matcher" do expect(rr_numeric).to eq RR::WildcardMatchers::Numeric.new end end describe "#boolean" do it "returns an Boolean matcher" do expect(boolean).to eq RR::WildcardMatchers::Boolean.new end it "rr_boolean returns an Boolean matcher" do expect(rr_boolean).to eq RR::WildcardMatchers::Boolean.new end end describe "#duck_type" do it "returns a DuckType matcher" do expect(duck_type(:one, :two)).to eq RR::WildcardMatchers::DuckType.new(:one, :two) end it "rr_duck_type returns a DuckType matcher" do expect(rr_duck_type(:one, :two)).to eq RR::WildcardMatchers::DuckType.new(:one, :two) end end end describe "#any_times" do it "returns an AnyTimesMatcher" do expect(any_times).to eq RR::TimesCalledMatchers::AnyTimesMatcher.new end it "rr_any_times returns an AnyTimesMatcher" do expect(rr_any_times).to eq RR::TimesCalledMatchers::AnyTimesMatcher.new end end end
Version data entries
14 entries across 14 versions & 1 rubygems