Class: Pact::VerificationTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Pact::VerificationTask
- Includes:
- TaskHelper
- Defined in:
- lib/pact/tasks/verification_task.rb
Instance Attribute Summary collapse
-
#pact_spec_config ⇒ Object
readonly
Returns the value of attribute pact_spec_config.
Instance Method Summary collapse
-
#initialize(name) {|_self| ... } ⇒ VerificationTask
constructor
A new instance of VerificationTask.
- #uri(uri, options = {}) ⇒ Object
Methods included from TaskHelper
#failure_message, #handle_verification_failure, #redify, #spec_criteria
Constructor Details
#initialize(name) {|_self| ... } ⇒ VerificationTask
Returns a new instance of VerificationTask.
36 37 38 39 40 41 |
# File 'lib/pact/tasks/verification_task.rb', line 36 def initialize(name) @pact_spec_config = [] @name = name yield self rake_task end |
Instance Attribute Details
#pact_spec_config ⇒ Object (readonly)
Returns the value of attribute pact_spec_config.
33 34 35 |
# File 'lib/pact/tasks/verification_task.rb', line 33 def pact_spec_config @pact_spec_config end |
Instance Method Details
#uri(uri, options = {}) ⇒ Object
43 44 45 |
# File 'lib/pact/tasks/verification_task.rb', line 43 def uri(uri, = {}) @pact_spec_config << {uri: uri, support_file: [:support_file], pact_helper: [:pact_helper]} end |