Sha256: 04fd8830e9fa22804f1fb042fc86164e910501a6b541d6da42c7a7e6705579d8
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 Bytes
Contents
```rb require 'pacto/rspec' require 'pacto/test_helper' describe 'ping service' do include Pacto::TestHelper it 'pongs' do with_pacto( port: 6000, backend_host: 'http://localhost:5000', live: true, stub: false, generate: false, directory: 'contracts' ) do |pacto_endpoint| ``` call your code ```rb system "curl #{pacto_endpoint}/api/ping" end ``` check citations ```rb expect(Pacto).to have_validated(:get, 'http://localhost:5000/api/ping') end end ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.4.0.rc3 | docs/server.md |
pacto-0.4.0.rc2 | docs/server.md |
pacto-0.4.0.rc1 | docs/server.md |