To make this slightly more accessible to people familiar with rspec, it would be great if the output and exit code stubs/mocks were moved to (or supplemented with) an rspec style.
Current way to mock
stubbed_curl_command.with_args('-XGET','google.com').outputs('<html>go away</html>')
RSpec way to mock
allow(stubbed_curl_command).to receive(:call).with('-XGET','google.com').and_return('<html>go away</html>')
To make this slightly more accessible to people familiar with rspec, it would be great if the output and exit code stubs/mocks were moved to (or supplemented with) an rspec style.
Current way to mock
RSpec way to mock