Sha256: e6b4dde50d98c077e2ada731925b560dbd2bbf05d128aecefe967d60aafd6d53
Contents?: true
Size: 702 Bytes
Versions: 7
Compression:
Stored size: 702 Bytes
Contents
require "spec_helper" describe WildcardMatchers::Matchers::HashIncludes do [ [ { :a => 1, :b => 1, :c => 1 }, :hash_includes, :a, :b ], [ { :a => 1, :b => 1, :c => 1 }, :hash_includes, :a, :b => 1 ], [ { :a => 1, :b => 1, :c => 1 }, :hash_includes, :a, :b => Integer ], ].each do |actual, matcher, *args| it_behaves_like "wildcard match", actual, matcher, *args end [ [ { :a => 1, :b => 1, :c => 1 }, :hash_includes, :a, :d ], [ { :a => 1, :b => 1, :c => 1 }, :hash_includes, :a, :b => 2 ], [ { :a => 1, :b => 1, :c => 1 }, :hash_includes, :a, :b => String ], ].each do |actual, matcher, *args| it_behaves_like "not wildcard match", actual, matcher, *args end end
Version data entries
7 entries across 7 versions & 1 rubygems