Skip to content
This repository
Browse code

Revert "Fix annoy warning, when executing testcase."

This reverts commit a3024f8.

REASON: Since warning doesn't exist
  • Loading branch information...
commit da67d192d214c5a978bbeecd30ad87fa06e690ab 1 parent 0a6afef
Andrey Deryabin authored November 30, 2012
2  activerecord/test/cases/helper.rb
@@ -22,8 +22,6 @@
22 22
 # Connect to the database
23 23
 ARTest.connect
24 24
 
25  
-require 'support/mysql'
26  
-
27 25
 # Quote "type" if it's a reserved word for the current connection.
28 26
 QUOTED_TYPE = ActiveRecord::Base.connection.quote_column_name('type')
29 27
 
11  activerecord/test/support/mysql.rb
... ...
@@ -1,11 +0,0 @@
1  
-if defined?(Mysql)
2  
-  class Mysql
3  
-    class Error
4  
-      # This monkey patch fixes annoy warning with mysql-2.8.1.gem when executing testcases.
5  
-      def errno_with_fix_warnings
6  
-        silence_warnings { errno_without_fix_warnings }
7  
-      end
8  
-      alias_method_chain :errno, :fix_warnings
9  
-    end
10  
-  end
11  
-end

0 notes on commit da67d19

Please sign in to comment.
Something went wrong with that request. Please try again.