diff options
author | Andrey Deryabin <deriabin@gmail.com> | 2012-11-30 12:07:55 +0400 |
---|---|---|
committer | Andrey Deryabin <deriabin@gmail.com> | 2012-11-30 12:07:55 +0400 |
commit | da67d192d214c5a978bbeecd30ad87fa06e690ab (patch) | |
tree | 459df62cd3a63d469354783cceff1accbe1351af /activerecord | |
parent | 0a6afef374028ccb558e4a8f65d49034d79188f4 (diff) | |
download | rails-da67d192d214c5a978bbeecd30ad87fa06e690ab.tar.gz rails-da67d192d214c5a978bbeecd30ad87fa06e690ab.tar.bz2 rails-da67d192d214c5a978bbeecd30ad87fa06e690ab.zip |
Revert "Fix annoy warning, when executing testcase."
This reverts commit a3024f81228d7b3b446408114a5dc2a86870cd35.
REASON: Since warning doesn't exist
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/helper.rb | 2 | ||||
-rw-r--r-- | activerecord/test/support/mysql.rb | 11 |
2 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index 1bff005510..3a315d843b 100644 --- a/activerecord/test/cases/helper.rb +++ b/activerecord/test/cases/helper.rb @@ -22,8 +22,6 @@ ActiveSupport::Deprecation.debug = true # Connect to the database ARTest.connect -require 'support/mysql' - # Quote "type" if it's a reserved word for the current connection. QUOTED_TYPE = ActiveRecord::Base.connection.quote_column_name('type') diff --git a/activerecord/test/support/mysql.rb b/activerecord/test/support/mysql.rb deleted file mode 100644 index 7a66415e64..0000000000 --- a/activerecord/test/support/mysql.rb +++ /dev/null @@ -1,11 +0,0 @@ -if defined?(Mysql) - class Mysql - class Error - # This monkey patch fixes annoy warning with mysql-2.8.1.gem when executing testcases. - def errno_with_fix_warnings - silence_warnings { errno_without_fix_warnings } - end - alias_method_chain :errno, :fix_warnings - end - end -end |