gem install betamax
require 'betamax'
RSpec.configure do |config|
config.include Betamax::TestHelpers
end
it ... do
betamax [['foo', ['my output', 127]]] do
`foo`.should == 'my output'
$?.exitstatus.should == 127
end
end
- Fork betamax
- Create a topic branch -
git checkout -b my_branch
- Push to your branch -
git push origin my_branch
- Create a Pull Request from your branch
See LICENSE