Sha256: 75e651449229446eb3c51ed9d690135247b372753de95b771bd4d126e2899334

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

require 'spec_helper'


describe "command" do

  it "runs commands" do
    c=NGSCI::Cmd.new("echo success")
    c.run
    expect(c.stdout.chomp).to eq("success")
  end

  it "receives commands" do
    c=NGSCI::Cmd.new("echo success")
    expect(c.to_s).to eq("echo success")    
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ngs-ci-0.0.2.b spec/lib/cmd_spec.rb
ngs-ci-0.0.1.a spec/lib/cmd_spec.rb