aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/active_schema_test_mysql.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-12-22 11:26:03 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-12-22 11:26:03 +0000
commit8b5f4e474f30560da85f52dd64dc3b45d0338b93 (patch)
tree0ba6fdc63093d9cc5549498d9f62238bea80a4cf /activerecord/test/active_schema_test_mysql.rb
parentdc901ced448179d9dfec924e22d8444b1a75265c (diff)
downloadrails-8b5f4e474f30560da85f52dd64dc3b45d0338b93.tar.gz
rails-8b5f4e474f30560da85f52dd64dc3b45d0338b93.tar.bz2
rails-8b5f4e474f30560da85f52dd64dc3b45d0338b93.zip
Ruby 1.9 compat: fix warnings, shadowed block vars, and unitialized instance vars
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/active_schema_test_mysql.rb')
-rw-r--r--activerecord/test/active_schema_test_mysql.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/activerecord/test/active_schema_test_mysql.rb b/activerecord/test/active_schema_test_mysql.rb
index 673c86c7ce..f00dfd7902 100644
--- a/activerecord/test/active_schema_test_mysql.rb
+++ b/activerecord/test/active_schema_test_mysql.rb
@@ -3,13 +3,16 @@ require 'abstract_unit'
class ActiveSchemaTest < Test::Unit::TestCase
def setup
ActiveRecord::ConnectionAdapters::MysqlAdapter.class_eval do
- alias_method :real_execute, :execute
+ alias_method :execute_without_stub, :execute
def execute(sql, name = nil) return sql end
end
end
def teardown
- ActiveRecord::ConnectionAdapters::MysqlAdapter.send(:alias_method, :execute, :real_execute)
+ ActiveRecord::ConnectionAdapters::MysqlAdapter.class_eval do
+ remove_method :execute
+ alias_method :execute, :execute_without_stub
+ end
end
def test_drop_table