lib/rspec/support/fuzzy_matcher.rb in rspec-support-3.0.3 vs lib/rspec/support/fuzzy_matcher.rb in rspec-support-3.0.4

- old
+ new

@@ -8,13 +8,15 @@ def self.values_match?(expected, actual) if Array === expected && Enumerable === actual return arrays_match?(expected, actual.to_a) elsif Hash === expected && Hash === actual return hashes_match?(expected, actual) + elsif actual == expected + return true end begin - actual == expected || expected === actual + expected === actual rescue ArgumentError # Some objects, like 0-arg lambdas on 1.9+, raise # ArgumentError for `expected === actual`. false end