Skip to content

Commit 5832c04

Browse files
committed
Fix randomly failing test
1 parent 900e69c commit 5832c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cases/coerced_tests.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def test_payload_row_count_on_raw_sql_coerced
389389
# Fix randomly failing test. The loading of the model's schema was affecting the test.
390390
coerce_tests! :test_payload_affected_rows
391391
def test_payload_affected_rows_coerced
392-
Book.send(:load_schema!)
392+
Book.create!(name: "TEMP RECORD TO RUN SCHEMA QUERIES").destroy!
393393
original_test_payload_affected_rows
394394
end
395395
end

0 commit comments

Comments
 (0)