Sha256: de1a8155fc4547326595195090c7b22e8f9c71f73b8a9a2c7bef7186f6c1ee71
Contents?: true
Size: 474 Bytes
Versions: 3
Compression:
Stored size: 474 Bytes
Contents
# -*- encoding : utf-8 -*- require 'pacto' Pacto.load_contracts 'contracts', 'http://localhost:5000' WebMock.allow_net_connect! interactions = Pacto.simulate_consumer :my_client do request 'Ping' request 'Echo', body: ->(body) { body.reverse }, headers: (proc do |headers| headers['Content-Type'] = 'text/json' headers['Accept'] = 'none' headers end) end puts interactions
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.4.0.rc3 | samples/consumer.rb |
pacto-0.4.0.rc2 | samples/consumer.rb |
pacto-0.4.0.rc1 | samples/consumer.rb |