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

Assigned but unused variable - bird

See: https://travis-ci.org/rails/rails/jobs/462233144#L1384
This commit is contained in:
utilum 2018-12-03 01:36:01 +01:00
parent 222757618e
commit d1c2f4d0d9

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