1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #34597 from utilum/assigned_but_unused_variable_bird

Assigned but unused variable - bird
This commit is contained in:
Yuji Yaginuma 2018-12-03 11:39:54 +09:00 committed by GitHub
commit e7717ec7a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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