From 5e8306be6104ff67882137125ff464544fd3ad90 Mon Sep 17 00:00:00 2001 From: Greg Schueler Date: Wed, 8 Jun 2016 10:38:18 -0700 Subject: [PATCH] fix tests --- .../groovy/org/rundeck/util/toolbelt/ToolBeltSpec.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/toolbelt/src/test/groovy/org/rundeck/util/toolbelt/ToolBeltSpec.groovy b/toolbelt/src/test/groovy/org/rundeck/util/toolbelt/ToolBeltSpec.groovy index 340beccb..73d0100e 100644 --- a/toolbelt/src/test/groovy/org/rundeck/util/toolbelt/ToolBeltSpec.groovy +++ b/toolbelt/src/test/groovy/org/rundeck/util/toolbelt/ToolBeltSpec.groovy @@ -63,7 +63,7 @@ class ToolBeltSpec extends Specification { given: def test = new MyTool1() test.greetResult = true - def tool = ToolBelt.with(test) + def tool = ToolBelt.with('test',test) when: def result = tool.runMain(['mytool1', 'greet', '--name', 'bob', '--age', '54', '--leaving'] as String[], false) then: @@ -78,7 +78,7 @@ class ToolBeltSpec extends Specification { def test = new MyTool1() test.greetResult = true def output = new TestOutput() - def tool = ToolBelt.with(output, test) + def tool = ToolBelt.with('test',output, test) when: def result = tool.runMain(['mytool1', helpCmd] as String[], false) then: @@ -100,7 +100,7 @@ class ToolBeltSpec extends Specification { given: def test = new MyTool1() test.greetResult = false - def tool = ToolBelt.with(test) + def tool = ToolBelt.with('test',test) when: def result = tool.runMain(['mytool1', 'greet', '--name', 'bob', '--age', '54', '--leaving'] as String[], false) then: @@ -113,7 +113,7 @@ class ToolBeltSpec extends Specification { def " solo command"() { given: def test = new MyTool2() - def tool = ToolBelt.with(test) + def tool = ToolBelt.with('test',test) when: def result = tool.runMain(['mytool2', '--name', 'bob', '--age', '54', '--leaving'] as String[], false) then: