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:
commit
e7717ec7a0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue