Sha256: ba739f0f8d77bd80ae496e8630c11172a7419fa4da3cfaa853968f16cd223063
Contents?: true
Size: 459 Bytes
Versions: 3
Compression:
Stored size: 459 Bytes
Contents
```rb 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 | docs/consumer.md |
pacto-0.4.0.rc2 | docs/consumer.md |
pacto-0.4.0.rc1 | docs/consumer.md |