Sha256: 49a51244cd5919072517e4068f09789eb88c3f5512c24d42a0c3d6e3a2f2d111

Contents?: true

Size: 556 Bytes

Versions: 13

Compression:

Stored size: 556 Bytes

Contents

require File.join(File.dirname(__FILE__), 'test_helper')
require 'hydra/tasks'
require 'rake'

class TaskTest < Test::Unit::TestCase
  context "a task" do
    should "execute the command in a remote machine" do
      
      File.delete( "/tmp/new_file" ) if File.exists? "/tmp/new_file"

      Hydra::RemoteTask.new('cat:text_file', 'touch new_file') do |t|
        t.config = "test/fixtures/task_test_config.yml"
      end

      Rake.application['hydra:remote:cat:text_file'].invoke

      assert( File.exists? "/tmp/new_file" )
      
    end
  end
end

Version data entries

13 entries across 13 versions & 6 rubygems

Version Path
ngauthier-hydra-0.24.0 test/task_test.rb
nulogy-hydra-0.26.0 test/task_test.rb
arturop-hydra-0.25.0 test/task_test.rb
arturop-hydra-0.24.0 test/task_test.rb
hydra-0.24.0 test/task_test.rb
nulogy-hydra-0.23.2.1 test/task_test.rb
justinf-hydra-0.23.8 test/task_test.rb
justinf-hydra-0.23.7 test/task_test.rb
justinf-hydra-0.23.6 test/task_test.rb
justinf-hydra-0.23.5 test/task_test.rb
justinf-hydra-0.23.4 test/task_test.rb
arturop-hydra-0.23.4 test/task_test.rb
sskirby-hydra-0.23.3 test/task_test.rb