Is it possible to stub a method in a parent class so that all subclass instances are stubbed in rspec?
This probably isn't the cleanest solution but it works:
Fruit.subclasses.each{|c| c.any_instance.stubs(:foo)}
This probably isn't the cleanest solution but it works:
Fruit.subclasses.each{|c| c.any_instance.stubs(:foo)}