Sha256: 85097de3043acba60edf1c298737ba450c6905967e82b399087c9bfa05498e2b

Contents?: true

Size: 857 Bytes

Versions: 21

Compression:

Stored size: 857 Bytes

Contents

require File.expand_path('../../../spec_helper', __FILE__)

module RR
  module WildcardMatchers
    describe Anything do
      include WildcardMatcherMatchers

      describe '#wildcard_match?' do
        it "always returns true when given any object" do
          should wildcard_match(Object.new)
          should wildcard_match(:symbol)
          should wildcard_match([1, 2, 3])
        end
      end

      describe '#==' do
        it "returns true when given an Anything object" do
          should equal_match(described_class.new)
        end

        it "returns false when not given an Anything object whatsoever" do
          should_not equal_match(:whatever)
        end
      end

      describe "#inspect" do
        it "returns the correct string" do
          expect(subject.inspect).to eq "anything"
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rr-3.1.1 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-3.1.0 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-3.0.9 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-3.0.8 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-3.0.7 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-3.0.6 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-3.0.5 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-3.0.4 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-3.0.3 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-3.0.2 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-3.0.1 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-3.0.0 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-1.2.1 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-1.2.0 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-1.1.2 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-1.1.2.rc1 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-1.1.1.rc1 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-1.1.0 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-1.1.0.rc3 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb
rr-1.1.0.rc2 spec/suites/rspec_2/unit/wildcard_matchers/anything_spec.rb