Sha256: 9370374adfcda806c050258b7e4378eb5ad4a87b56086d428354cdf28be976d6

Contents?: true

Size: 529 Bytes

Versions: 2

Compression:

Stored size: 529 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')

describe DRbQS::CommandTask::CommandExecute do
  it "should execute command" do
    cmd_exec = DRbQS::CommandTask::CommandExecute.new(['ls > /dev/null', "echo hello > /dev/null"])
    cmd_exec.exec.should == [0, 0]
  end

  it "should enqueue files" do
    DRbQS::Transfer.should_receive(:enqueue).exactly(2)
    cmd_exec = DRbQS::CommandTask::CommandExecute.new('ls > /dev/null', :transfer => ['hello', 'world'])
    cmd_exec.exec.should == [0]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
drbqs-0.1.1 spec/ext/task/command_task_spec.rb
drbqs-0.1.0 spec/ext/task/command_task_spec.rb