lib/mocha/class_method.rb in jferris-mocha-0.9.5.0.1241126838 vs lib/mocha/class_method.rb in jferris-mocha-0.9.7.0.1247796736

- old
+ new

@@ -35,10 +35,14 @@ end end end def define_new_method - stubbee.__metaclass__.class_eval("def #{method}(*args, &block); mocha.method_missing(:#{method}, *args, &block); end", __FILE__, __LINE__) + stubbee.__metaclass__.class_eval(%{ + def #{method}(*args, &block) + mocha.method_missing(:#{method}, *args, &block) + end + }, __FILE__, __LINE__) end def remove_new_method stubbee.__metaclass__.send(:remove_method, method) end