README.md in pipekit-webmock-0.4.4 vs README.md in pipekit-webmock-0.4.5

- old
+ new

@@ -39,10 +39,11 @@ - `resource` - what "entity" is request made to. Possible values are: - `:person` - `:deal` - `:note` + - `:activity` - `:personField` - `action`: - `:get` - Stubs a `GET` request to get resource by id or a query string. - `:create` - Stubs a `POST` request to create a resource. - `:update` - Stubs a `PUT` request to update the resource. `params` hash should include `id`. @@ -101,10 +102,27 @@ params: { "Middle name" => "Purr" # custom Pipedrive field }, response: [{id: 123}] ) + +stub_pipedrive_request( + resource: :activity, + action: :create, + params: { + :deal_id=>123, + :person_id=>321, + :subject=>"Interview Completed", + :due_date=>"2017-11-14", + :due_time=>"14:30", + :duration=>"00:45", + :done=>1, + :type=>"pairing_session", + :note=>"Super cool cat!\n - Interviewed by: Octocat" + }, + response: {id: 123 +) ``` ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. @@ -117,6 +135,5 @@ ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). -