We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20f4190 commit 8a6efaaCopy full SHA for 8a6efaa
test/cases/sqlserver_helper.rb
@@ -98,10 +98,22 @@ module SqlserverCoercedTest
98
def self.included(base)
99
base.extend ClassMethods
100
end
101
+
102
module ClassMethods
103
104
+ def self.extended(base)
105
+ base.class_eval do
106
+ Array(coerced_tests).each do |method_name|
107
+ undef_method(method_name) rescue nil
108
+ STDOUT.puts("Info: Undefined coerced test: #{self.name}##{method_name}")
109
+ end
110
111
112
113
def coerced_tests
114
self.const_get(:COERCED_TESTS) rescue nil
115
116
117
def method_added(method)
118
if coerced_tests && coerced_tests.include?(method)
119
undef_method(method) rescue nil
0 commit comments