Class: PactBroker::Api::Contracts::PutPacticipantNameContract

Inherits:
BaseContract
  • Object
show all
Defined in:
lib/pact_broker/api/contracts/put_pact_params_contract.rb

Instance Method Summary collapse

Methods inherited from BaseContract

call

Methods included from DryValidationErrorsFormatter

#add_error, #add_indexed_error, #format_errors

Methods included from DryValidationMethods

#not_provided?, #provided?, #validate_environment_with_name_exists, #validate_no_spaces_if_present, #validate_not_blank_if_present, #validate_not_multiple_lines, #validate_pacticipant_with_name_exists, #validate_url, #validate_valid_url, #validate_version_number, #validation_message

Instance Method Details

#name_in_pact_does_not_match_name_in_url_path?(values) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/pact_broker/api/contracts/put_pact_params_contract.rb', line 19

def name_in_pact_does_not_match_name_in_url_path?(values)
  provided?(values[:name_in_pact]) && values[:name] != values[:name_in_pact]
end