Class: Tumugi::Test::TumugiTestCase
- Inherits:
-
Test::Unit::TestCase
- Object
- Test::Unit::TestCase
- Tumugi::Test::TumugiTestCase
- Defined in:
- lib/tumugi/test/helper.rb
Instance Method Summary collapse
- #assert_run_fail(workflow_file, task, options = {}) ⇒ Object
- #assert_run_success(workflow_file, task, options = {}) ⇒ Object
- #assert_show_fail(workflow_file, task, options = {}) ⇒ Object
- #assert_show_success(workflow_file, task, options = {}) ⇒ Object
- #invoke(command, workflow_file, task, options) ⇒ Object
Instance Method Details
#assert_run_fail(workflow_file, task, options = {}) ⇒ Object
29 30 31 32 33 |
# File 'lib/tumugi/test/helper.rb', line 29 def assert_run_fail(workflow_file, task, ={}) assert_raise(Thor::Error) do invoke(:run_, workflow_file, task, ) end end |
#assert_run_success(workflow_file, task, options = {}) ⇒ Object
25 26 27 |
# File 'lib/tumugi/test/helper.rb', line 25 def assert_run_success(workflow_file, task, ={}) assert_true(invoke(:run_, workflow_file, task, { workers: 2 }.merge())) end |
#assert_show_fail(workflow_file, task, options = {}) ⇒ Object
39 40 41 42 43 |
# File 'lib/tumugi/test/helper.rb', line 39 def assert_show_fail(workflow_file, task, ={}) assert_raise(Thor::Error) do invoke(:show, workflow_file, task, ) end end |