Sha256: 0bc2dad70a032ef2b30b06fab8ad7129167fdef6d49714f2b66c1741057af3e7

Contents?: true

Size: 151 Bytes

Versions: 27

Compression:

Stored size: 151 Bytes

Contents

RSpec::Matchers.define :include_hash do |expected_hash|
  match do |actual_array|
    actual_array.any? { |a_hash| a_hash == expected_hash }
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
qa-5.14.0 spec/support/matchers/include_hash.rb
qa-5.13.0 spec/support/matchers/include_hash.rb
qa-5.12.0 spec/support/matchers/include_hash.rb
qa-5.11.0 spec/support/matchers/include_hash.rb
qa-5.10.0 spec/support/matchers/include_hash.rb
qa-5.9.0 spec/support/matchers/include_hash.rb
qa-5.8.1 spec/support/matchers/include_hash.rb
qa-5.8.0 spec/support/matchers/include_hash.rb
qa-5.7.0 spec/support/matchers/include_hash.rb
qa-5.6.0 spec/support/matchers/include_hash.rb
qa-5.5.2 spec/support/matchers/include_hash.rb
qa-4.3.0 spec/support/matchers/include_hash.rb
qa-5.5.1 spec/support/matchers/include_hash.rb
qa-5.5.0 spec/support/matchers/include_hash.rb
qa-5.4.0 spec/support/matchers/include_hash.rb
qa-5.3.1 spec/support/matchers/include_hash.rb
qa-5.3.0 spec/support/matchers/include_hash.rb
qa-5.2.0 spec/support/matchers/include_hash.rb
qa-5.1.0 spec/support/matchers/include_hash.rb
qa-5.0.0 spec/support/matchers/include_hash.rb