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

fixing unused variable warnings

This commit is contained in:
Aaron Patterson 2011-01-17 14:22:17 -08:00
parent 7a3f05f43d
commit fdfabc99e8

View file

@ -105,9 +105,9 @@ class MysqlReservedWordTest < ActiveRecord::TestCase
assert_nothing_raised { x.save }
x.order = 'y'
assert_nothing_raised { x.save }
assert_nothing_raised { y = Group.find_by_order('y') }
assert_nothing_raised { y = Group.find(1) }
x = Group.find(1)
assert_nothing_raised { Group.find_by_order('y') }
assert_nothing_raised { Group.find(1) }
Group.find(1)
end
# has_one association with reserved-word table name