Skip to content

Commit 94c4702

Browse files
committed
Rails 6.1.4 fixes bind column name
1 parent caf645d commit 94c4702

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

test/active_record_test.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,7 @@ class ActiveRecordTest < Minitest::Test
8787

8888
if Rails.version.to_f > 5.1
8989
assert binds = payload[:binds], -> { actual.ai }
90-
if Rails.version.to_f >= 6.1
91-
# Rails 6.1 dropped the bound column name
92-
# Can be removed once this PR is fixed: https://github.com/rails/rails/pull/41068
93-
assert_equal [2, 3], binds[:nil], -> { actual.ai }
94-
else
95-
assert_equal [2, 3], binds[:age], -> { actual.ai }
96-
end
97-
90+
assert_equal [2, 3], binds[:age], -> { actual.ai }
9891
assert_equal 1, binds[:limit], -> { actual.ai }
9992
end
10093
end

0 commit comments

Comments
 (0)