Created
December 18, 2017 04:41
-
-
Save MacoTasu/c4867a1a04bb958eb98bb542022bc775 to your computer and use it in GitHub Desktop.
pact consumer sample code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pact/consumer/rspec' | |
Pact.service_consumer "client" do | |
has_pact_with "microservice" do | |
mock_service :microservice do | |
port 3001 # 適当なポート | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment