Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 6b7ff69

Browse files
pirjJonRowe
andauthored
Update lib/rspec/support/differ.rb
Co-authored-by: Jon Rowe <[email protected]>
1 parent 7046659 commit 6b7ff69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rspec/support/differ.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def diff_as_string(actual, expected)
6161
if defined?(RSpec::Mocks::ArgumentMatchers::AnyArgMatcher)
6262
def diff_hashes_as_object(actual, expected)
6363
actual_to_diff =
64-
actual.reduce({}) do |hash, (key, value)|
64+
actual.keys.reduce({}) do |hash, key|
6565
if RSpec::Mocks::ArgumentMatchers::AnyArgMatcher === expected[key]
6666
hash[key] = expected[key]
6767
else

0 commit comments

Comments
 (0)