Module: Pact
- Defined in:
- lib/pact/consumer/server.rb,
lib/pact/app.rb,
lib/pact/term.rb,
lib/pact/logging.rb,
lib/pact/version.rb,
lib/pact/shared/dsl.rb,
lib/pact/reification.rb,
lib/pact/configuration.rb,
lib/pact/consumer/rspec.rb,
lib/pact/provider/rspec.rb,
lib/pact/shared/request.rb,
lib/pact/something_like.rb,
lib/pact/symbolize_keys.rb,
lib/pact/consumer/request.rb,
lib/pact/provider/request.rb,
lib/pact/matchers/matchers.rb,
lib/pact/tasks/task_helper.rb,
lib/pact/consumer/app_manager.rb,
lib/pact/shared/key_not_found.rb,
lib/pact/provider/test_methods.rb,
lib/pact/provider/configuration.rb,
lib/pact/matchers/unexpected_key.rb,
lib/pact/provider/provider_state.rb,
lib/pact/shared/null_expectation.rb,
lib/pact/tasks/verification_task.rb,
lib/pact/matchers/index_not_found.rb,
lib/pact/consumer/mock_service/app.rb,
lib/pact/consumer_contract/request.rb,
lib/pact/matchers/unexpected_index.rb,
lib/pact/provider/pact_spec_runner.rb,
lib/pact/consumer/interaction_builder.rb,
lib/pact/consumer/interactions_filter.rb,
lib/pact/consumer/mock_service_client.rb,
lib/pact/provider/pact_helper_locator.rb,
lib/pact/consumer/mock_service/log_get.rb,
lib/pact/consumer_contract/interaction.rb,
lib/pact/consumer/consumer_contract_builder.rb,
lib/pact/consumer_contract/service_consumer.rb,
lib/pact/consumer_contract/service_provider.rb,
lib/pact/consumer/consumer_contract_builders.rb,
lib/pact/consumer_contract/consumer_contract.rb,
lib/pact/consumer/mock_service/interaction_list.rb,
lib/pact/consumer/mock_service/interaction_post.rb,
lib/pact/consumer/mock_service/verification_get.rb,
lib/pact/consumer/mock_service/interaction_delete.rb,
lib/pact/consumer/mock_service/interaction_replay.rb,
lib/pact/consumer_contract/active_support_support.rb,
lib/pact/consumer/mock_service/rack_request_helper.rb,
lib/pact/consumer/mock_service_interaction_expectation.rb,
lib/pact/consumer/mock_service/missing_interactions_get.rb,
lib/pact/consumer/mock_service/mock_service_administration_endpoint.rb
Overview
Represents the Interaction in the form required by the MockService The json generated will be posted to the MockService to register the expectation
Defined Under Namespace
Modules: ActiveSupportSupport, Consumer, DSL, FileName, Logging, Matchers, PactFile, Provider, Reification, Request, SymbolizeKeys, TaskHelper
Classes: App, Configuration, ConsumerContract, DslDelegator, IndexNotFound, Interaction, KeyNotFound, NullExpectation, Server, ServiceConsumer, ServiceProvider, SomethingLike, Term, UnexpectedIndex, UnexpectedKey, VerificationTask
Constant Summary
collapse
- VERSION =
"1.0.19"
Class Method Summary
collapse
Class Method Details
.clear_configuration ⇒ Object
43
44
45
|
# File 'lib/pact/configuration.rb', line 43
def self.clear_configuration
@configuration = default_configuration
end
|
.configuration ⇒ Object
34
35
36
|
# File 'lib/pact/configuration.rb', line 34
def self.configuration
@configuration ||= default_configuration
end
|
38
39
40
41
|
# File 'lib/pact/configuration.rb', line 38
def self.configure
yield configuration
FileUtils::mkdir_p configuration.tmp_dir
end
|