{"action":"closed","number":21,"pull_request":{"url":"https://api.github.com/repos/sproutapp/pavlov/pulls/21","id":26964758,"html_url":"https://github.com/sproutapp/pavlov/pull/21","diff_url":"https://github.com/sproutapp/pavlov/pull/21.diff","patch_url":"https://github.com/sproutapp/pavlov/pull/21.patch","issue_url":"https://api.github.com/repos/sproutapp/pavlov/issues/21","number":21,"state":"closed","locked":false,"title":"Feat/chain to receive","user":{"login":"Gazler","id":477511,"avatar_url":"https://avatars.githubusercontent.com/u/477511?v=3","gravatar_id":"","url":"https://api.github.com/users/Gazler","html_url":"https://github.com/Gazler","followers_url":"https://api.github.com/users/Gazler/followers","following_url":"https://api.github.com/users/Gazler/following{/other_user}","gists_url":"https://api.github.com/users/Gazler/gists{/gist_id}","starred_url":"https://api.github.com/users/Gazler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gazler/subscriptions","organizations_url":"https://api.github.com/users/Gazler/orgs","repos_url":"https://api.github.com/users/Gazler/repos","events_url":"https://api.github.com/users/Gazler/events{/privacy}","received_events_url":"https://api.github.com/users/Gazler/received_events","type":"User","site_admin":false},"body":"Previously, When mocking multiple functions on the same module, the\r\nsyntax was:\r\n\r\n```elixir\r\nallow(Mockable) |> to_receive(do_something: fn -> :error end)\r\nMockable |> to_receive(do_something_else: fn -> :success end)\r\n```\r\n\r\n`allow(Mockable)` now returns a struct in the format\r\n`%Pavlov.Mocks{module: Mockable}` this is now the expected argument to\r\n`to_receive` allowing the following:\r\n\r\n```elixir\r\nallow(Mockable)\r\n  |> to_receive(do_something: fn -> :error end)\r\n  |> to_receive(do_something_else: fn -> :success end)\r\n```\r\n\r\nThe first commit breaks the old way of doing this. The second commit fixes it again. If you want to support the old way let me know and I can squash the commits.","created_at":"2015-01-07T15:39:17Z","updated_at":"2015-01-07T16:46:37Z","closed_at":"2015-01-07T16:46:37Z","merged_at":"2015-01-07T16:46:37Z","merge_commit_sha":"55f0a00a193148ae4985f092ff17d0ddbfebd543","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sproutapp/pavlov/pulls/21/commits","review_comments_url":"https://api.github.com/repos/sproutapp/pavlov/pulls/21/comments","review_comment_url":"https://api.github.com/repos/sproutapp/pavlov/pulls/comments/{number}","comments_url":"https://api.github.com/repos/sproutapp/pavlov/issues/21/comments","statuses_url":"https://api.github.com/repos/sproutapp/pavlov/statuses/c28582fb27caa081dc26a7743c8736f8096868e3","head":{"label":"Gazler:feat/chain-to-receive","ref":"feat/chain-to-receive","sha":"c28582fb27caa081dc26a7743c8736f8096868e3","user":{"login":"Gazler","id":477511,"avatar_url":"https://avatars.githubusercontent.com/u/477511?v=3","gravatar_id":"","url":"https://api.github.com/users/Gazler","html_url":"https://github.com/Gazler","followers_url":"https://api.github.com/users/Gazler/followers","following_url":"https://api.github.com/users/Gazler/following{/other_user}","gists_url":"https://api.github.com/users/Gazler/gists{/gist_id}","starred_url":"https://api.github.com/users/Gazler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gazler/subscriptions","organizations_url":"https://api.github.com/users/Gazler/orgs","repos_url":"https://api.github.com/users/Gazler/repos","events_url":"https://api.github.com/users/Gazler/events{/privacy}","received_events_url":"https://api.github.com/users/Gazler/received_events","type":"User","site_admin":false},"repo":{"id":28859628,"name":"pavlov","full_name":"Gazler/pavlov","owner":{"login":"Gazler","id":477511,"avatar_url":"https://avatars.githubusercontent.com/u/477511?v=3","gravatar_id":"","url":"https://api.github.com/users/Gazler","html_url":"https://github.com/Gazler","followers_url":"https://api.github.com/users/Gazler/followers","following_url":"https://api.github.com/users/Gazler/following{/other_user}","gists_url":"https://api.github.com/users/Gazler/gists{/gist_id}","starred_url":"https://api.github.com/users/Gazler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gazler/subscriptions","organizations_url":"https://api.github.com/users/Gazler/orgs","repos_url":"https://api.github.com/users/Gazler/repos","events_url":"https://api.github.com/users/Gazler/events{/privacy}","received_events_url":"https://api.github.com/users/Gazler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gazler/pavlov","description":"A BDD framework for your Elixir projects","fork":true,"url":"https://api.github.com/repos/Gazler/pavlov","forks_url":"https://api.github.com/repos/Gazler/pavlov/forks","keys_url":"https://api.github.com/repos/Gazler/pavlov/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gazler/pavlov/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gazler/pavlov/teams","hooks_url":"https://api.github.com/repos/Gazler/pavlov/hooks","issue_events_url":"https://api.github.com/repos/Gazler/pavlov/issues/events{/number}","events_url":"https://api.github.com/repos/Gazler/pavlov/events","assignees_url":"https://api.github.com/repos/Gazler/pavlov/assignees{/user}","branches_url":"https://api.github.com/repos/Gazler/pavlov/branches{/branch}","tags_url":"https://api.github.com/repos/Gazler/pavlov/tags","blobs_url":"https://api.github.com/repos/Gazler/pavlov/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gazler/pavlov/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gazler/pavlov/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gazler/pavlov/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gazler/pavlov/statuses/{sha}","languages_url":"https://api.github.com/repos/Gazler/pavlov/languages","stargazers_url":"https://api.github.com/repos/Gazler/pavlov/stargazers","contributors_url":"https://api.github.com/repos/Gazler/pavlov/contributors","subscribers_url":"https://api.github.com/repos/Gazler/pavlov/subscribers","subscription_url":"https://api.github.com/repos/Gazler/pavlov/subscription","commits_url":"https://api.github.com/repos/Gazler/pavlov/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gazler/pavlov/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gazler/pavlov/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gazler/pavlov/issues/comments/{number}","contents_url":"https://api.github.com/repos/Gazler/pavlov/contents/{+path}","compare_url":"https://api.github.com/repos/Gazler/pavlov/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gazler/pavlov/merges","archive_url":"https://api.github.com/repos/Gazler/pavlov/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gazler/pavlov/downloads","issues_url":"https://api.github.com/repos/Gazler/pavlov/issues{/number}","pulls_url":"https://api.github.com/repos/Gazler/pavlov/pulls{/number}","milestones_url":"https://api.github.com/repos/Gazler/pavlov/milestones{/number}","notifications_url":"https://api.github.com/repos/Gazler/pavlov/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gazler/pavlov/labels{/name}","releases_url":"https://api.github.com/repos/Gazler/pavlov/releases{/id}","created_at":"2015-01-06T11:08:29Z","updated_at":"2015-01-06T11:08:30Z","pushed_at":"2015-01-07T16:21:59Z","git_url":"git://github.com/Gazler/pavlov.git","ssh_url":"git@github.com:Gazler/pavlov.git","clone_url":"https://github.com/Gazler/pavlov.git","svn_url":"https://github.com/Gazler/pavlov","homepage":null,"size":560,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sproutapp:master","ref":"master","sha":"7ced31540bf1d045febf35ddd17fafb2d16a4b30","user":{"login":"sproutapp","id":9963213,"avatar_url":"https://avatars.githubusercontent.com/u/9963213?v=3","gravatar_id":"","url":"https://api.github.com/users/sproutapp","html_url":"https://github.com/sproutapp","followers_url":"https://api.github.com/users/sproutapp/followers","following_url":"https://api.github.com/users/sproutapp/following{/other_user}","gists_url":"https://api.github.com/users/sproutapp/gists{/gist_id}","starred_url":"https://api.github.com/users/sproutapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sproutapp/subscriptions","organizations_url":"https://api.github.com/users/sproutapp/orgs","repos_url":"https://api.github.com/users/sproutapp/repos","events_url":"https://api.github.com/users/sproutapp/events{/privacy}","received_events_url":"https://api.github.com/users/sproutapp/received_events","type":"Organization","site_admin":false},"repo":{"id":27221358,"name":"pavlov","full_name":"sproutapp/pavlov","owner":{"login":"sproutapp","id":9963213,"avatar_url":"https://avatars.githubusercontent.com/u/9963213?v=3","gravatar_id":"","url":"https://api.github.com/users/sproutapp","html_url":"https://github.com/sproutapp","followers_url":"https://api.github.com/users/sproutapp/followers","following_url":"https://api.github.com/users/sproutapp/following{/other_user}","gists_url":"https://api.github.com/users/sproutapp/gists{/gist_id}","starred_url":"https://api.github.com/users/sproutapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sproutapp/subscriptions","organizations_url":"https://api.github.com/users/sproutapp/orgs","repos_url":"https://api.github.com/users/sproutapp/repos","events_url":"https://api.github.com/users/sproutapp/events{/privacy}","received_events_url":"https://api.github.com/users/sproutapp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sproutapp/pavlov","description":"A BDD framework for your Elixir projects","fork":false,"url":"https://api.github.com/repos/sproutapp/pavlov","forks_url":"https://api.github.com/repos/sproutapp/pavlov/forks","keys_url":"https://api.github.com/repos/sproutapp/pavlov/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sproutapp/pavlov/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sproutapp/pavlov/teams","hooks_url":"https://api.github.com/repos/sproutapp/pavlov/hooks","issue_events_url":"https://api.github.com/repos/sproutapp/pavlov/issues/events{/number}","events_url":"https://api.github.com/repos/sproutapp/pavlov/events","assignees_url":"https://api.github.com/repos/sproutapp/pavlov/assignees{/user}","branches_url":"https://api.github.com/repos/sproutapp/pavlov/branches{/branch}","tags_url":"https://api.github.com/repos/sproutapp/pavlov/tags","blobs_url":"https://api.github.com/repos/sproutapp/pavlov/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sproutapp/pavlov/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sproutapp/pavlov/git/refs{/sha}","trees_url":"https://api.github.com/repos/sproutapp/pavlov/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sproutapp/pavlov/statuses/{sha}","languages_url":"https://api.github.com/repos/sproutapp/pavlov/languages","stargazers_url":"https://api.github.com/repos/sproutapp/pavlov/stargazers","contributors_url":"https://api.github.com/repos/sproutapp/pavlov/contributors","subscribers_url":"https://api.github.com/repos/sproutapp/pavlov/subscribers","subscription_url":"https://api.github.com/repos/sproutapp/pavlov/subscription","commits_url":"https://api.github.com/repos/sproutapp/pavlov/commits{/sha}","git_commits_url":"https://api.github.com/repos/sproutapp/pavlov/git/commits{/sha}","comments_url":"https://api.github.com/repos/sproutapp/pavlov/comments{/number}","issue_comment_url":"https://api.github.com/repos/sproutapp/pavlov/issues/comments/{number}","contents_url":"https://api.github.com/repos/sproutapp/pavlov/contents/{+path}","compare_url":"https://api.github.com/repos/sproutapp/pavlov/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sproutapp/pavlov/merges","archive_url":"https://api.github.com/repos/sproutapp/pavlov/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sproutapp/pavlov/downloads","issues_url":"https://api.github.com/repos/sproutapp/pavlov/issues{/number}","pulls_url":"https://api.github.com/repos/sproutapp/pavlov/pulls{/number}","milestones_url":"https://api.github.com/repos/sproutapp/pavlov/milestones{/number}","notifications_url":"https://api.github.com/repos/sproutapp/pavlov/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sproutapp/pavlov/labels{/name}","releases_url":"https://api.github.com/repos/sproutapp/pavlov/releases{/id}","created_at":"2014-11-27T10:57:03Z","updated_at":"2015-01-07T14:53:32Z","pushed_at":"2015-01-07T16:46:37Z","git_url":"git://github.com/sproutapp/pavlov.git","ssh_url":"git@github.com:sproutapp/pavlov.git","clone_url":"https://github.com/sproutapp/pavlov.git","svn_url":"https://github.com/sproutapp/pavlov","homepage":null,"size":560,"stargazers_count":21,"watchers_count":21,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sproutapp/pavlov/pulls/21"},"html":{"href":"https://github.com/sproutapp/pavlov/pull/21"},"issue":{"href":"https://api.github.com/repos/sproutapp/pavlov/issues/21"},"comments":{"href":"https://api.github.com/repos/sproutapp/pavlov/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/sproutapp/pavlov/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/sproutapp/pavlov/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/sproutapp/pavlov/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/sproutapp/pavlov/statuses/c28582fb27caa081dc26a7743c8736f8096868e3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"inf0rmer","id":290137,"avatar_url":"https://avatars.githubusercontent.com/u/290137?v=3","gravatar_id":"","url":"https://api.github.com/users/inf0rmer","html_url":"https://github.com/inf0rmer","followers_url":"https://api.github.com/users/inf0rmer/followers","following_url":"https://api.github.com/users/inf0rmer/following{/other_user}","gists_url":"https://api.github.com/users/inf0rmer/gists{/gist_id}","starred_url":"https://api.github.com/users/inf0rmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inf0rmer/subscriptions","organizations_url":"https://api.github.com/users/inf0rmer/orgs","repos_url":"https://api.github.com/users/inf0rmer/repos","events_url":"https://api.github.com/users/inf0rmer/events{/privacy}","received_events_url":"https://api.github.com/users/inf0rmer/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":29,"deletions":5,"changed_files":3}}