Sha256: 83a59bfae7e5d9c0cb81c4d11ec15899313336d9365788c6fb549b664f833d8b
Contents?: true
Size: 533 Bytes
Versions: 3
Compression:
Stored size: 533 Bytes
Contents
# -*- encoding : utf-8 -*- 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 system "curl #{pacto_endpoint}/api/ping" end # check citations 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 | samples/server.rb |
pacto-0.4.0.rc2 | samples/server.rb |
pacto-0.4.0.rc1 | samples/server.rb |