Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (18 sloc) 0.471 kb
require 'helpers'
class WorkerfileTest < IWNGTest
def workerfile(str)
Tempfile.open('workerfile_test', '.'){ |f| f << str }
end
def test_basic
wf = workerfile <<EOF
runtime 'binary'
name 'ShHello'
exec 'test/hello.sh'
EOF
code = IronWorkerNG::Code::Base.new(:workerfile => wf.path)
client.codes.create(code)
id = client.tasks.create('ShHello').id
client.tasks.wait_for(id)
assert_equal "hello\n", client.tasks.log(id)
end
end
Jump to Line
Something went wrong with that request. Please try again.