Skip to content

Commit e8c48e0

Browse files
nevansrgarner
andcommitted
Fix test assert expected/actual order
Co-authored-by: Russell Garner <[email protected]>
1 parent 90946b6 commit e8c48e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_rake_task_arguments.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def test_deconstruct_keys
5858
omit "No stable pattern matching until Ruby 3.1 (testing #{RUBY_VERSION})" if RUBY_VERSION < "3.1"
5959

6060
ta = Rake::TaskArguments.new([:a, :b, :c], [1, 2, 3])
61-
assert_equal ta.deconstruct_keys(nil), { a: 1, b: 2, c: 3 }
62-
assert_equal ta.deconstruct_keys([:a, :b]), { a: 1, b: 2 }
61+
assert_equal({ a: 1, b: 2, c: 3 }, ta.deconstruct_keys(nil))
62+
assert_equal({ a: 1, b: 2 }, ta.deconstruct_keys([:a, :b]))
6363
end
6464

6565
def test_enumerable_behavior

0 commit comments

Comments
 (0)