Sha256: c1e2ffcd61624f9cb21f6b78127f6d9c0d711028966c40b9ecc0b63d281f93ad
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
require 'pact/provider/state/provider_state' require 'pact/provider/state/provider_state_configured_modules' module Pact module Provider module Configuration module ConfigurationExtension def provider= provider @provider = provider end def provider if defined? @provider @provider else raise "Please configure your provider. See the Provider section in the README for examples." end end def config_ru_path @config_ru_path ||= './config.ru' end def config_ru_path= config_ru_path @config_ru_path = config_ru_path end def interactions_replay_order @interactions_replay_order ||= :recorded #or :random end def interactions_replay_order= interactions_replay_order @interactions_replay_order = interactions_replay_order.to_sym end def include mod Pact::Provider::State::ProviderStateConfiguredModules.instance_eval do include mod end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pact-1.10.0 | lib/pact/provider/configuration/configuration_extension.rb |
pact-1.9.6 | lib/pact/provider/configuration/configuration_extension.rb |