stack level too deep when stub method via any_instance in base class
Created by: piotrze
There is a bug when you stub some method in base class via any_instance, and You want to call that method in child class.
it "should stub method in base class" do
Class A < Object
end
Object.any_instance.stub(:some_method).and_return("foo")
a = A.new
a.foo
end