Class: Producer::Core::Tests::ConditionTest

Inherits:
Producer::Core::Test show all
Extended by:
Forwardable
Defined in:
lib/producer/core/tests/condition_test.rb

Instance Attribute Summary

Attributes inherited from Producer::Core::Test

#arguments, #env

Instance Method Summary collapse

Methods inherited from Producer::Core::Test

#initialize, #negated?, #pass?, #verify

Constructor Details

This class inherits a constructor from Producer::Core::Test

Instance Method Details

#conditionObject



9
10
11
# File 'lib/producer/core/tests/condition_test.rb', line 9

def condition
  Condition.evaluate env, *condition_args, &condition_block
end

#condition_argsObject



13
14
15
# File 'lib/producer/core/tests/condition_test.rb', line 13

def condition_args
  arguments.drop 1
end