diff options
Diffstat (limited to 'test/lib/dslkeywords/only_when_test.rb')
| -rw-r--r-- | test/lib/dslkeywords/only_when_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/dslkeywords/only_when_test.rb b/test/lib/dslkeywords/only_when_test.rb index 9eaf5ac..94ebe79 100644 --- a/test/lib/dslkeywords/only_when_test.rb +++ b/test/lib/dslkeywords/only_when_test.rb @@ -5,14 +5,14 @@ require_relative '../../../lib/dsl' class RCMOnlyWhenTest < Minitest::Test def test_hostname - rcm = configure(reset: true) do + rcm = configure_from_scratch do only_when { hostname Socket.gethostname } end assert rcm.conds_met end def test_hostname_negative - rcm = configure(reset: true) do + rcm = configure_from_scratch do only_when { hostname "#{Socket.gethostname}.invalid" } end refute rcm.conds_met |
