class Tumugi::Test::TumugiTestCase
Public Instance Methods
assert_run_fail(workflow_file, task, options={})
click to toggle source
# File lib/tumugi/test/helper.rb, line 29 def assert_run_fail(workflow_file, task, options={}) assert_raise(Thor::Error) do invoke(:run_, workflow_file, task, options) end end
assert_run_success(workflow_file, task, options={})
click to toggle source
# File lib/tumugi/test/helper.rb, line 25 def assert_run_success(workflow_file, task, options={}) assert_true(invoke(:run_, workflow_file, task, { workers: 2 }.merge(options))) end
assert_show_fail(workflow_file, task, options={})
click to toggle source
# File lib/tumugi/test/helper.rb, line 39 def assert_show_fail(workflow_file, task, options={}) assert_raise(Thor::Error) do invoke(:show, workflow_file, task, options) end end
assert_show_success(workflow_file, task, options={})
click to toggle source
# File lib/tumugi/test/helper.rb, line 35 def assert_show_success(workflow_file, task, options={}) assert_true(invoke(:show, workflow_file, task, options)) end
invoke(command, workflow_file, task, options)
click to toggle source
# File lib/tumugi/test/helper.rb, line 21 def invoke(command, workflow_file, task, options) Tumugi::CLI.new.invoke(command, [task], { file: workflow_file, quiet: true }.merge(options)) end