Sha256: 8f3b90e5e39d237e99bb7da03154c6897819296ed5c4cf27af6f90ca155d6975

Contents?: true

Size: 375 Bytes

Versions: 6

Compression:

Stored size: 375 Bytes

Contents

require 'rjobs/process'
describe Rjobs::Process do
  it "can execute a simple command" do
    cmd = "echo Hello World!"
    #cmd = "ls"
    Rjobs::Process.run(cmd).should == "Hello World!\n"
  end

  it "should have stdout attribute" do
    cmd = "echo Hello World!"
    #cmd = "ls"
    output = Rjobs::Process.run(cmd)
    
    output.should == "Hello World!\n"
  end


end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rjobs-0.3.3.alpha spec/lib/process_spec.rb
rjobs-0.3.2.alpha spec/lib/process_spec.rb
rjobs-0.3.1.alpha spec/lib/process_spec.rb
rjobs-0.3.0.alpha spec/lib/process_spec.rb
rjobs-0.2.0.alpha spec/lib/process_spec.rb
rjobs-0.1.0.alpha spec/lib/process_spec.rb