diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 6c7f3a9c56..171983a9f5 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1492,7 +1492,7 @@ class BasicsTest < ActiveRecord::TestCase test "creating a record raises if preventing writes" do assert_raises ActiveRecord::StatementInvalid do ActiveRecord::Base.connection.while_preventing_writes do - bird = Bird.create! name: "Bluejay" + Bird.create! name: "Bluejay" end end end