Sha256: dd9f62183c4bf4df4a24101a63569ec7c7248a07ae1db23f31266aa3f95948fd

Contents?: true

Size: 168 Bytes

Versions: 1

Compression:

Stored size: 168 Bytes

Contents

RSpecCandy::Switcher.define_matcher :include_hash do |expected|

  match do |actual|
    !actual.nil? && expected.values == actual.values_at(*expected.keys)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec_candy-0.5.1 lib/rspec_candy/matchers/include_hash.rb