Module: Pact

Includes:
Helpers
Defined in:
lib/pact/rspec.rb,
lib/pact/term.rb,
lib/pact/errors.rb,
lib/pact/helpers.rb,
lib/pact/logging.rb,
lib/pact/support.rb,
lib/pact/array_like.rb,
lib/pact/shared/dsl.rb,
lib/pact/reification.rb,
lib/pact/configuration.rb,
lib/pact/matching_rules.rb,
lib/pact/shared/request.rb,
lib/pact/something_like.rb,
lib/pact/symbolize_keys.rb,
lib/pact/matchers/differ.rb,
lib/pact/support/version.rb,
lib/pact/consumer/request.rb,
lib/pact/matchers/matchers.rb,
lib/pact/shared/form_differ.rb,
lib/pact/shared/json_differ.rb,
lib/pact/shared/text_differ.rb,
lib/pact/matchers/difference.rb,
lib/pact/matchers/actual_type.rb,
lib/pact/matching_rules/merge.rb,
lib/pact/shared/jruby_support.rb,
lib/pact/shared/key_not_found.rb,
lib/pact/specification_version.rb,
lib/pact/matchers/expected_type.rb,
lib/pact/matching_rules/extract.rb,
lib/pact/consumer_contract/query.rb,
lib/pact/matchers/unexpected_key.rb,
lib/pact/matching_rules/jsonpath.rb,
lib/pact/matching_rules/v3/merge.rb,
lib/pact/shared/null_expectation.rb,
lib/pact/matchers/base_difference.rb,
lib/pact/matchers/index_not_found.rb,
lib/pact/matchers/type_difference.rb,
lib/pact/consumer_contract/headers.rb,
lib/pact/consumer_contract/request.rb,
lib/pact/matchers/no_diff_at_index.rb,
lib/pact/matchers/unexpected_index.rb,
lib/pact/matching_rules/v3/extract.rb,
lib/pact/consumer_contract/response.rb,
lib/pact/matchers/regexp_difference.rb,
lib/pact/consumer_contract/file_name.rb,
lib/pact/consumer_contract/pact_file.rb,
lib/pact/consumer_contract/query_hash.rb,
lib/pact/matchers/list_diff_formatter.rb,
lib/pact/matchers/unix_diff_formatter.rb,
lib/pact/shared/multipart_form_differ.rb,
lib/pact/consumer_contract/interaction.rb,
lib/pact/matchers/difference_indicator.rb,
lib/pact/shared/active_support_support.rb,
lib/pact/consumer_contract/query_string.rb,
lib/pact/matchers/extract_diff_messages.rb,
lib/pact/consumer_contract/provider_state.rb,
lib/pact/matchers/embedded_diff_formatter.rb,
lib/pact/consumer_contract/service_consumer.rb,
lib/pact/consumer_contract/service_provider.rb,
lib/pact/http/authorization_header_redactor.rb,
lib/pact/consumer_contract/consumer_contract.rb,
lib/pact/consumer_contract/interaction_parser.rb,
lib/pact/matchers/multipart_form_diff_formatter.rb,
lib/pact/consumer_contract/interaction_v2_parser.rb,
lib/pact/consumer_contract/interaction_v3_parser.rb,
lib/pact/consumer_contract/string_with_matching_rules.rb,
lib/pact/consumer_contract/http_consumer_contract_parser.rb

Defined Under Namespace

Modules: ActiveSupportSupport, Consumer, DSL, FileName, Helpers, Http, JRubySupport, Logging, Matchers, MatchingRules, PactFile, RSpec, Reification, Request, Support, SymbolizeKeys Classes: ActualType, ArrayLike, Configuration, ConsumerContract, DifferenceIndicator, DslDelegator, DuplicateHeaderError, Error, ExpectedType, FormDiffer, Headers, HttpConsumerContractParser, IndexNotFound, Interaction, InteractionParser, InteractionV2Parser, InteractionV3Parser, InvalidHeaderNameTypeError, InvalidInteractionError, JsonDiffer, KeyNotFound, MultipartFormDiffer, NullExpectation, ProviderState, Query, QueryHash, QueryString, Response, ServiceConsumer, ServiceProvider, SomethingLike, SpecificationVersion, StringWithMatchingRules, Term, TextDiffer, UnexpectedIndex, UnexpectedKey, UnrecognizePactFormatError

Class Method Summary collapse

Methods included from Helpers

#each_like, included, #like, #like_date, #like_datetime, #like_datetime_rfc822, #like_datetime_with_milliseconds, #like_uuid, #term

Class Method Details

.clear_configurationObject



190
191
192
# File 'lib/pact/configuration.rb', line 190

def self.clear_configuration
  @configuration = nil
end

.configurationObject



182
183
184
# File 'lib/pact/configuration.rb', line 182

def self.configuration
  @configuration ||= Configuration.default_configuration
end

.configure {|configuration| ... } ⇒ Object

Yields:



186
187
188
# File 'lib/pact/configuration.rb', line 186

def self.configure
  yield configuration
end