Sha256: e5a3150626466085005c3b7429a60d74dd14c1370a837ab53fce8ee42385324a
Contents?: true
Size: 833 Bytes
Versions: 1
Compression:
Stored size: 833 Bytes
Contents
describe Rbsh::Shell do before :each do @shell = Rbsh::Shell.new end describe "echo test" do before { @shell.echo("test") } subject { @shell.run! } it { should eq "test\n" } end describe "echo test | grep test" do before { @shell.echo("test").grep("test") } subject { @shell.run! } it { should eq "test\n" } end describe "echo test | grep no" do before { @shell.echo("test").grep("no") } subject { @shell.run! } it { should eq "\n" } end describe "load_script! 'echo(\"test\")'" do before { @shell.load_script!('echo("test")') } subject { @shell.run! } it { should eq "test\n" } end describe "echo test1; echo test2" do before { @shell.echo("test1"); @shell.echo("test2") } subject { @shell.run! } it { should eq "test1\ntest2\n" } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbsh-0.0.1 | spec/rbsh/shell_spec.rb |