aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-17 14:22:17 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-17 14:22:17 -0800
commitfdfabc99e80d5c48bdaf1c046c592ac81dc4c2c6 (patch)
treeda7830dba6f47ce900ea082788f7f04435734931 /activerecord/test/cases/adapters
parent7a3f05f43d99d9b4442e3848a308fed3cb697e3b (diff)
downloadrails-fdfabc99e80d5c48bdaf1c046c592ac81dc4c2c6.tar.gz
rails-fdfabc99e80d5c48bdaf1c046c592ac81dc4c2c6.tar.bz2
rails-fdfabc99e80d5c48bdaf1c046c592ac81dc4c2c6.zip
fixing unused variable warnings
Diffstat (limited to 'activerecord/test/cases/adapters')
-rw-r--r--activerecord/test/cases/adapters/mysql/reserved_word_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/mysql/reserved_word_test.rb b/activerecord/test/cases/adapters/mysql/reserved_word_test.rb
index 90d8b0d923..b5c938b14a 100644
--- a/activerecord/test/cases/adapters/mysql/reserved_word_test.rb
+++ b/activerecord/test/cases/adapters/mysql/reserved_word_test.rb
@@ -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