Sha256: da5c166a0134c64a3ef3f22606f53f0ef943130dcb7d4b563de51d773513c32c
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
require_relative "spec_helper" require "pact/messages" Pact::Messages.service_consumer "Message Consumer" do has_pact_with "Message Provider" do mock_service "message_provider_service" end end Pact::Messages.build_mock_service(:message_provider_service) do |service| service.given("User subscribed") .provide( "first_name" => like("John"), "last_name" => like("Smith"), "subscribed" => true, ) service.given("User unsubscribed") .provide( "first_name" => like("John"), "last_name" => like("Smith"), "subscribed" => false, ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pact-messages-0.2.0 | example/user-app/spec/pact_helper.rb |