Sha256: b92b61bc87d842ed06a69435a06ec8ab9f9907afdf3bb3488835c8fe069b32bb

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

describe Rbsh::Pipeline do
  describe "echo test" do
    subject { Rbsh::Pipeline.new(:echo, "test").to_s }
    it { should eq "test\n" }
  end

  describe "echo test | grep test" do
    subject { Rbsh::Pipeline.new(:echo, "test").grep("test").to_s }
    it { should eq "test\n" }
  end

  describe "echo test | grep no" do
    subject { Rbsh::Pipeline.new(:echo, "test").grep("no").to_s }
    it { should eq "\n" }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rbsh-0.0.1 spec/rbsh/pipeline_spec.rb