Class: Pact::VerificationTask

Inherits:
Rake::TaskLib
  • Object
show all
Includes:
TaskHelper
Defined in:
lib/pact/tasks/verification_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from TaskHelper

#failure_message, #handle_verification_failure, #redify, #spec_criteria

Constructor Details

#initialize(name) {|_self| ... } ⇒ VerificationTask

Returns a new instance of VerificationTask.

Yields:

  • (_self)

Yield Parameters:



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_configObject (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, options = {})
  @pact_spec_config << {uri: uri, support_file: options[:support_file], pact_helper: options[:pact_helper]}
end