redefining a methods is not an error

and happens in tests
This commit is contained in:
Torsten Ruger 2015-07-19 10:35:45 +03:00
parent a554762da8
commit ae7350bd57

View File

@ -43,7 +43,7 @@ module Parfait
found = get_instance_method( method.name )
if found
@instance_methods.delete(found)
raise "existed in #{self.name} #{Sof.write found.source.blocks}"
#raise "existed in #{self.name} #{Sof.write found.source.blocks}"
end
@instance_methods.push method
#puts "#{self.name} add #{method.name}"