File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments