Skip to content

Commit 2b1b159

Browse files
committed
Fixed tests
1 parent 36cfcbe commit 2b1b159

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/cases/coerced_tests.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,12 +627,12 @@ def test_has_one_coerced
627627

628628

629629

630-
class HasOneAssociationsTest < ActiveRecord::TestCase
630+
class HasOneThroughAssociationsTest < ActiveRecord::TestCase
631631
# Asserted SQL to get one row different from original test.
632632
coerce_tests! :test_has_one_through_executes_limited_query
633633
def test_has_one_through_executes_limited_query_coerced
634634
boring_club = clubs(:boring_club)
635-
assert_sql(/FETCH NEXT @1 ROWS ONLY(.)*@1 = 1/) do
635+
assert_sql(/FETCH NEXT @3 ROWS ONLY(.)*@3 = 1/) do
636636
assert_equal boring_club, @member.general_club
637637
end
638638
end
@@ -647,7 +647,7 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase
647647
def test_belongs_to_coerced
648648
client = Client.find(3)
649649
first_firm = companies(:first_firm)
650-
assert_sql(/FETCH NEXT @1 ROWS ONLY(.)*@1 = 1/) do
650+
assert_sql(/FETCH NEXT @3 ROWS ONLY(.)*@3 = 1/) do
651651
assert_equal first_firm, client.firm
652652
assert_equal first_firm.name, client.firm.name
653653
end

0 commit comments

Comments
 (0)