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

Revert "Fix annoy warning, when executing testcase."

This reverts commit a3024f8122.

REASON: Since warning doesn't exist
This commit is contained in:
Andrey Deryabin 2012-11-30 12:07:55 +04:00
parent 0a6afef374
commit da67d192d2
2 changed files with 0 additions and 13 deletions

View file

@ -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')

View file

@ -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