StubShell Build Status

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

  1. Fork stub_shell
  2. Create a topic branch - git checkout -b my_branch
  3. Push to your branch - git push origin my_branch
  4. Create a Pull Request from your branch

License

See LICENSE