Skip to content

Commit d36c752

Browse files
Add ensure to reset table name in tests
1 parent fd5542e commit d36c752

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activerecord/test/cases/insert_all_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@ def test_insert_all_when_table_name_contains_database
819819
assert_nothing_raised do
820820
Book.insert_all! [{ name: "Rework", author_id: 1 }]
821821
end
822+
ensure
822823
Book.table_name = "books"
823824
end
824825
end

0 commit comments

Comments
 (0)