README.md in pact-messages-0.1.1 vs README.md in pact-messages-0.2.0
- old
+ new
@@ -72,10 +72,11 @@
### Define Mock Service
```ruby
Pact::Messages.build_mock_service(:message_provider_service) do |service|
service.given('User subscribed')
+ .description('a request for subscribed user')
.provide(
{
'first_name' => like('John'),
'last_name' => like('Smith'),
'subscribed' => like(true),
@@ -92,9 +93,10 @@
)
end
```
PS: '.given' is optional, if you have only one state, you don't need to specify '.given'
+ '.description' is optional
```ruby
Pact::Messages.build_mock_service(:message_provider_service) do |service|
service.provide(
{