Sha256: 09a6fdb937decce1f83ed651c7b3ec48dcbf26ed7460b78039739b39d475280e
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 Bytes
Contents
describe Pacto do describe '.configure' do let(:contracts_path) { 'path_to_contracts' } it 'allows contracts_path manual configuration' do expect(Pacto.configuration.contracts_path).to be_nil Pacto.configure do |c| c.contracts_path = contracts_path end expect(Pacto.configuration.contracts_path).to eq(contracts_path) end it 'register a Pacto Hook' do hook_block = Pacto::Hook.new {} Pacto.configure do |c| c.register_hook(hook_block) end expect(Pacto.configuration.hook).to eq(hook_block) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.3.1 | spec/unit/pacto/core/configuration_spec.rb |
pacto-0.3.0 | spec/unit/pacto/core/configuration_spec.rb |