lib/cross-stub/stubber.rb in cross-stub-0.2.1 vs lib/cross-stub/stubber.rb in cross-stub-0.2.2
- old
+ new
@@ -101,10 +101,10 @@
end
alias_method :t_eval, :m_eval
def has_method?(method)
- @thing.instance_methods.map(&:to_s).include?(method.to_s)
+ @thing.instance_methods.map{|m| m.to_s }.include?(method.to_s)
end
end
class Klass