spec/support/matchers.rb in arid_cache-1.3.6 vs spec/support/matchers.rb in arid_cache-1.4.0
- old
+ new
@@ -1,6 +1,6 @@
-Spec::Matchers.define :include_keys do |*expected|
+RSpec::Matchers.define :include_keys do |*expected|
match do |actual|
check_all_present(actual, expected) == []
end
@@ -13,10 +13,10 @@
expected = [expected] unless expected.is_a?(Array)
remainder = expected.map(&:to_sym) - keys_we_have
end
end
-Spec::Matchers.define :match_object do |object, *expected_matching_keys|
+RSpec::Matchers.define :match_object do |object, *expected_matching_keys|
match do |actual|
check_specified_keys_match(actual, object, expected_matching_keys) == []
end