Sha256: 76c053985823509390def0c28d7ba3f04d872cdfe7da86fb32871a98de05f8fe

Contents?: true

Size: 553 Bytes

Versions: 56

Compression:

Stored size: 553 Bytes

Contents

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

module RR
  module WildcardMatchers
    describe HashIncluding do
      describe "#inspect" do
        it "returns hash_including with expected key/values" do
          expected_hash = {:foo => "bar", :baz => "qux"}
          matcher = HashIncluding.new(expected_hash)
          matcher.inspect.should include("hash_including(")
          matcher.inspect.should include(':foo=>"bar"')
          matcher.inspect.should include(':baz=>"qux"')
        end
      end
    end
  end
end

Version data entries

56 entries across 52 versions & 9 rubygems

Version Path
adva-0.3.2 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.3.1 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.3.0 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.2.4 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.2.3 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.2.2 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.2.1 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.2.0 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.1.4 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.1.3 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.1.2 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.1.1 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.1.0 test/rr/spec/rr/expectations/hash_including_spec.rb
adva-0.0.1 test/rr/spec/rr/expectations/hash_including_spec.rb
jferris-rr-0.7.1.0.1239654108 spec/rr/expectations/hash_including_spec.rb
redinger-redinger-rr-0.10.3 spec/rr/expectations/hash_including_spec.rb
redinger-rr-0.10.4 spec/rr/expectations/hash_including_spec.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/spec/rr/expectations/hash_including_spec.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.3/vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/spec/rr/expectations/hash_including_spec.rb
bitclust-core-0.5.3 vendor/bundle/ruby/1.9.1/gems/bitclust-core-0.5.1/vendor/bundle/ruby/1.9.1/gems/rr-1.0.4/spec/rr/expectations/hash_including_spec.rb