aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-04-08 17:58:00 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-04-11 10:10:01 -0700
commitb1ba04b32be25596d957a301553dd03c97588e14 (patch)
tree3d51b2e6a82d9ab0cd861f79e491ad7a01fef712 /activerecord
parent90a371496a7a44b74879011d4e316ffaa6fcf299 (diff)
downloadrails-b1ba04b32be25596d957a301553dd03c97588e14.tar.gz
rails-b1ba04b32be25596d957a301553dd03c97588e14.tar.bz2
rails-b1ba04b32be25596d957a301553dd03c97588e14.zip
fixing variable name in mysql test
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb b/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb
index 0d8eb55388..146b77a95c 100644
--- a/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb
+++ b/activerecord/test/cases/adapters/mysql/mysql_adapter_test.rb
@@ -55,7 +55,7 @@ module ActiveRecord
private
def insert(ctx, data)
binds = data.map { |name, value|
- [@conn.columns('ex').find { |x| x.name == name }, value]
+ [ctx.columns('ex').find { |x| x.name == name }, value]
}
columns = binds.map(&:first).map(&:name)