before do
allow_any_instance_of(Class).to receive(:call).and_return(double)
end
Failure/Error: allow_any_instance_of(Class).to receive(:call).and_return(double)
Using any_instance to stub a method (call) that has been defined on a prepended module (SimpleCommand) is not supported.
Failure/Error: allow_any_instance_of(Class).to receive(:call).and_return(double) Using
any_instance
to stub a method (call) that has been defined on a prepended module (SimpleCommand) is not supported.