StubShell
Installation
gem install stub_shell
Configuration
require 'stub_shell'
RSpec.configure do |config|
config.include StubShell::TestHelpers
end
Usage
it ... do
stub_shell do
command "ls /tmp/foobar" do
stdout "hey there"
end
end
end
Contribute
- Fork stub_shell
- 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
License
See LICENSE