Sha256: 02bd8253ef7f1f62c7222587c97c98f9ac3baae6526371455aa43d9747e65db9
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
require 'spec_helper' describe Scripted::Commands::Shell do it "executes a shell command" do shell = Scripted::Commands::Shell.new("echo this is a test in capturing output") r = with_io do |io| shell.execute!(io) end expect(r.strip).to eq "this is a test in capturing output" end it "can fail" do shell = Scripted::Commands::Shell.new("false") expect{shell.execute!}.to raise_error Scripted::CommandFailed end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scripted-0.0.1 | spec/scripted/commands/shell_spec.rb |