Sha256: 545f1cfc411cce3bd4a330c8993481a130d17a7b8f10bbc22d255c1e771601dd

Contents?: true

Size: 1.86 KB

Versions: 32

Compression:

Stored size: 1.86 KB

Contents

require File.expand_path("#{File.dirname(__FILE__)}/../../spec_helper")

module RR
  module Adapters
    describe RRMethods do
      describe "#anything" do
        it_should_behave_like "RR::Adapters::RRMethods"

        it "returns an Anything matcher" do
          anything.should == WildcardMatchers::Anything.new
        end

        it "rr_anything returns an Anything matcher" do
          rr_anything.should == WildcardMatchers::Anything.new
        end
      end

      describe "#is_a" do
        it_should_behave_like "RR::Adapters::RRMethods"

        it "returns an IsA matcher" do
          is_a(Integer).should == WildcardMatchers::IsA.new(Integer)
        end

        it "rr_is_a returns an IsA matcher" do
          rr_is_a(Integer).should == WildcardMatchers::IsA.new(Integer)
        end
      end

      describe "#numeric" do
        it_should_behave_like "RR::Adapters::RRMethods"

        it "returns an Numeric matcher" do
          numeric.should == WildcardMatchers::Numeric.new
        end

        it "rr_numeric returns an Numeric matcher" do
          rr_numeric.should == WildcardMatchers::Numeric.new
        end
      end

      describe "#boolean" do
        it_should_behave_like "RR::Adapters::RRMethods"

        it "returns an Boolean matcher" do
          boolean.should == WildcardMatchers::Boolean.new
        end

        it "rr_boolean returns an Boolean matcher" do
          rr_boolean.should == WildcardMatchers::Boolean.new
        end
      end

      describe "#duck_type" do
        it_should_behave_like "RR::Adapters::RRMethods"

        it "returns a DuckType matcher" do
          duck_type(:one, :two).should == WildcardMatchers::DuckType.new(:one, :two)
        end

        it "rr_duck_type returns a DuckType matcher" do
          rr_duck_type(:one, :two).should == WildcardMatchers::DuckType.new(:one, :two)
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 5 rubygems

Version Path
adva-0.3.2 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.3.1 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.3.0 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.2.4 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.2.3 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.2.2 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.2.1 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.2.0 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.1.4 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.1.3 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.1.2 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.1.1 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.1.0 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
adva-0.0.1 test/rr/spec/rr/adapters/rr_methods_argument_matcher_spec.rb
jferris-rr-0.7.1.0.1239654108 spec/rr/adapters/rr_methods_argument_matcher_spec.rb
redinger-redinger-rr-0.10.3 spec/rr/adapters/rr_methods_argument_matcher_spec.rb
redinger-rr-0.10.4 spec/rr/adapters/rr_methods_argument_matcher_spec.rb
rr-0.10.9 spec/rr/adapters/rr_methods_argument_matcher_spec.rb
rr-0.10.8 spec/rr/adapters/rr_methods_argument_matcher_spec.rb
rr-0.10.7 spec/rr/adapters/rr_methods_argument_matcher_spec.rb