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