Skip to content

Commit aa29638

Browse files
authored
Merge pull request rails#43423 from yahonda/diag81644
Address test_does_not_raise_if_no_fk_violations failure
2 parents 492bdaf + 1cf2975 commit aa29638

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/test/cases/fixtures_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ def test_bulk_insert_multiple_table_with_a_multi_statement_query
9595
subscriber = InsertQuerySubscriber.new
9696
subscription = ActiveSupport::Notifications.subscribe("sql.active_record", subscriber)
9797

98-
create_fixtures("bulbs", "authors", "computers")
98+
create_fixtures("bulbs", "movies", "computers")
9999

100100
expected_sql = <<~EOS.chop
101101
INSERT INTO #{ActiveRecord::Base.connection.quote_table_name("bulbs")} .*
102-
INSERT INTO #{ActiveRecord::Base.connection.quote_table_name("authors")} .*
102+
INSERT INTO #{ActiveRecord::Base.connection.quote_table_name("movies")} .*
103103
INSERT INTO #{ActiveRecord::Base.connection.quote_table_name("computers")} .*
104104
EOS
105105
assert_equal 1, subscriber.events.size

0 commit comments

Comments
 (0)