Skip to content

Commit

Permalink
chore(docs): use 'merge' instead of 'update'. #71
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Mar 20, 2018
1 parent 3bc71f1 commit 7bc8362
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ Here is the Provider test process broker down:
1. Start your Provider API:

You need to be able to first start your API in the background as part of your tests
before you can run the verification process. Here we create `startServer` which can be
before you can run the verification process. Here we create `startServer` which can be
started in its own goroutine:

```go
Expand Down Expand Up @@ -272,7 +272,7 @@ Here is the Provider test process broker down:
```

Note that the server has a `/setup` endpoint that is given a `types.ProviderState` and allows the
verifier to setup any
verifier to setup any
[provider states](http://docs.pact.io/documentation/provider_states.html) before
each test is run.

Expand Down Expand Up @@ -322,7 +322,7 @@ When validating a Provider, you have 3 options to provide the Pact files:
```go
pact.VerifyProvider(t, types.VerifyRequest{
ProviderBaseURL: "http://myproviderhost",
PactURLs: []string{"http://broker/pacts/provider/them/consumer/me/latest/dev"},
PactURLs: []string{"http://broker/pacts/provider/them/consumer/me/latest/dev"},
ProviderStatesSetupURL: "http://myproviderhost/setup",
BrokerUsername: os.Getenv("PACT_BROKER_USERNAME"),
BrokerPassword: os.Getenv("PACT_BROKER_PASSWORD"),
Expand All @@ -333,7 +333,7 @@ When validating a Provider, you have 3 options to provide the Pact files:
```go
pact.VerifyProvider(t, types.VerifyRequest{
ProviderBaseURL: "http://myproviderhost",
BrokerURL: "http://brokerHost",
BrokerURL: "http://brokerHost",
ProviderStatesSetupURL: "http://myproviderhost/setup",
BrokerUsername: os.Getenv("PACT_BROKER_USERNAME"),
BrokerPassword: os.Getenv("PACT_BROKER_PASSWORD"),
Expand All @@ -345,7 +345,7 @@ When validating a Provider, you have 3 options to provide the Pact files:
pact.VerifyProvider(t, types.VerifyRequest{
ProviderBaseURL: "http://myproviderhost",
BrokerURL: "http://brokerHost",
Tags: []string{"latest", "sit4"},
Tags: []string{"latest", "sit4"},
ProviderStatesSetupURL: "http://myproviderhost/setup",
BrokerUsername: os.Getenv("PACT_BROKER_USERNAME"),
BrokerPassword: os.Getenv("PACT_BROKER_PASSWORD"),
Expand Down Expand Up @@ -447,7 +447,7 @@ Pact tests tend to be quite long, due to the need to be specific about request/r
You have two options to achieve this feat:
1. Set `PactFileWriteMode` to `"update"` when creating a `Pact` struct:
1. Set `PactFileWriteMode` to `"merge"` when creating a `Pact` struct:
This will allow you to have multiple independent tests for a given Consumer-Provider pair, without it clobbering previous interactions.
Expand Down
2 changes: 1 addition & 1 deletion dsl/pact.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type Pact struct {
// PactFileWriteMode specifies how to write to the Pact file, for the life
// of a Mock Service.
// "overwrite" will always truncate and replace the pact after each run
// "update" will append to the pact file, which is useful if your tests
// "merge" will append to the pact file, which is useful if your tests
// are split over multiple files and instantiations of a Mock Server
// See https://github.com/pact-foundation/pact-ruby/blob/master/documentation/configuration.md#pactfile_write_mode
PactFileWriteMode string
Expand Down

0 comments on commit 7bc8362

Please sign in to comment.