{"action":"created","comment":{"url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/comments/25443316","id":25443316,"diff_hunk":"@@ -68,4 +55,28 @@ defmodule PactTest do\n     Pact.put(:string, Integer)\n     assert Pact.get(\"string\") == Integer\n   end\n+\n+  test \"replace module replaces the given module\" do\n+    Pact.put(\"foo\", String)\n+\n+    Pact.replace self, \"foo\" do\n+      def awesome? do\n+        true\n+      end","path":"test/pact_test.exs","position":51,"original_position":51,"commit_id":"368054c50dc83eeee6debfb856bbefb1336f23db","original_commit_id":"368054c50dc83eeee6debfb856bbefb1336f23db","user":{"login":"paulcsmith","id":22394,"avatar_url":"https://avatars.githubusercontent.com/u/22394?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcsmith","html_url":"https://github.com/paulcsmith","followers_url":"https://api.github.com/users/paulcsmith/followers","following_url":"https://api.github.com/users/paulcsmith/following{/other_user}","gists_url":"https://api.github.com/users/paulcsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcsmith/subscriptions","organizations_url":"https://api.github.com/users/paulcsmith/orgs","repos_url":"https://api.github.com/users/paulcsmith/repos","events_url":"https://api.github.com/users/paulcsmith/events{/privacy}","received_events_url":"https://api.github.com/users/paulcsmith/received_events","type":"User","site_admin":false},"body":"Will this work if you define multiple functions? If so maybe we should add a test for that?","created_at":"2015-02-26T16:56:01Z","updated_at":"2015-02-26T16:56:01Z","html_url":"https://github.com/BlakeWilliams/pact/pull/2#discussion_r25443316","pull_request_url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/comments/25443316"},"html":{"href":"https://github.com/BlakeWilliams/pact/pull/2#discussion_r25443316"},"pull_request":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/2","id":30093760,"html_url":"https://github.com/BlakeWilliams/pact/pull/2","diff_url":"https://github.com/BlakeWilliams/pact/pull/2.diff","patch_url":"https://github.com/BlakeWilliams/pact/pull/2.patch","issue_url":"https://api.github.com/repos/BlakeWilliams/pact/issues/2","number":2,"state":"open","locked":false,"title":"Add `replace` macro to replace dependencies","user":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"body":"Add `replace` macro which allows you to define a fake module inline that\ngenerates a unique, fake module with the given block.\n\n* Remove meck dependency\n* Remove override with anonymous function syntax\n* Remove useless `deep_get`","created_at":"2015-02-26T16:42:01Z","updated_at":"2015-02-26T16:56:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41c9f73b7f81765277957a2aee5fa8564e897a64","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/2/commits","review_comments_url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/2/comments","review_comment_url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BlakeWilliams/pact/issues/2/comments","statuses_url":"https://api.github.com/repos/BlakeWilliams/pact/statuses/368054c50dc83eeee6debfb856bbefb1336f23db","head":{"label":"BlakeWilliams:bmw-replace-macro","ref":"bmw-replace-macro","sha":"368054c50dc83eeee6debfb856bbefb1336f23db","user":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"repo":{"id":28836987,"name":"pact","full_name":"BlakeWilliams/pact","owner":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BlakeWilliams/pact","description":"Better dependency injection in Elixir","fork":false,"url":"https://api.github.com/repos/BlakeWilliams/pact","forks_url":"https://api.github.com/repos/BlakeWilliams/pact/forks","keys_url":"https://api.github.com/repos/BlakeWilliams/pact/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlakeWilliams/pact/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlakeWilliams/pact/teams","hooks_url":"https://api.github.com/repos/BlakeWilliams/pact/hooks","issue_events_url":"https://api.github.com/repos/BlakeWilliams/pact/issues/events{/number}","events_url":"https://api.github.com/repos/BlakeWilliams/pact/events","assignees_url":"https://api.github.com/repos/BlakeWilliams/pact/assignees{/user}","branches_url":"https://api.github.com/repos/BlakeWilliams/pact/branches{/branch}","tags_url":"https://api.github.com/repos/BlakeWilliams/pact/tags","blobs_url":"https://api.github.com/repos/BlakeWilliams/pact/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlakeWilliams/pact/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlakeWilliams/pact/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlakeWilliams/pact/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlakeWilliams/pact/statuses/{sha}","languages_url":"https://api.github.com/repos/BlakeWilliams/pact/languages","stargazers_url":"https://api.github.com/repos/BlakeWilliams/pact/stargazers","contributors_url":"https://api.github.com/repos/BlakeWilliams/pact/contributors","subscribers_url":"https://api.github.com/repos/BlakeWilliams/pact/subscribers","subscription_url":"https://api.github.com/repos/BlakeWilliams/pact/subscription","commits_url":"https://api.github.com/repos/BlakeWilliams/pact/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlakeWilliams/pact/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlakeWilliams/pact/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlakeWilliams/pact/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlakeWilliams/pact/contents/{+path}","compare_url":"https://api.github.com/repos/BlakeWilliams/pact/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlakeWilliams/pact/merges","archive_url":"https://api.github.com/repos/BlakeWilliams/pact/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlakeWilliams/pact/downloads","issues_url":"https://api.github.com/repos/BlakeWilliams/pact/issues{/number}","pulls_url":"https://api.github.com/repos/BlakeWilliams/pact/pulls{/number}","milestones_url":"https://api.github.com/repos/BlakeWilliams/pact/milestones{/number}","notifications_url":"https://api.github.com/repos/BlakeWilliams/pact/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlakeWilliams/pact/labels{/name}","releases_url":"https://api.github.com/repos/BlakeWilliams/pact/releases{/id}","created_at":"2015-01-05T23:28:09Z","updated_at":"2015-02-25T21:53:20Z","pushed_at":"2015-02-26T16:42:01Z","git_url":"git://github.com/BlakeWilliams/pact.git","ssh_url":"git@github.com:BlakeWilliams/pact.git","clone_url":"https://github.com/BlakeWilliams/pact.git","svn_url":"https://github.com/BlakeWilliams/pact","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"BlakeWilliams:master","ref":"master","sha":"23b68e62844761bb63bbf700faeb8ca78ebc22e4","user":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"repo":{"id":28836987,"name":"pact","full_name":"BlakeWilliams/pact","owner":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BlakeWilliams/pact","description":"Better dependency injection in Elixir","fork":false,"url":"https://api.github.com/repos/BlakeWilliams/pact","forks_url":"https://api.github.com/repos/BlakeWilliams/pact/forks","keys_url":"https://api.github.com/repos/BlakeWilliams/pact/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlakeWilliams/pact/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlakeWilliams/pact/teams","hooks_url":"https://api.github.com/repos/BlakeWilliams/pact/hooks","issue_events_url":"https://api.github.com/repos/BlakeWilliams/pact/issues/events{/number}","events_url":"https://api.github.com/repos/BlakeWilliams/pact/events","assignees_url":"https://api.github.com/repos/BlakeWilliams/pact/assignees{/user}","branches_url":"https://api.github.com/repos/BlakeWilliams/pact/branches{/branch}","tags_url":"https://api.github.com/repos/BlakeWilliams/pact/tags","blobs_url":"https://api.github.com/repos/BlakeWilliams/pact/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlakeWilliams/pact/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlakeWilliams/pact/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlakeWilliams/pact/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlakeWilliams/pact/statuses/{sha}","languages_url":"https://api.github.com/repos/BlakeWilliams/pact/languages","stargazers_url":"https://api.github.com/repos/BlakeWilliams/pact/stargazers","contributors_url":"https://api.github.com/repos/BlakeWilliams/pact/contributors","subscribers_url":"https://api.github.com/repos/BlakeWilliams/pact/subscribers","subscription_url":"https://api.github.com/repos/BlakeWilliams/pact/subscription","commits_url":"https://api.github.com/repos/BlakeWilliams/pact/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlakeWilliams/pact/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlakeWilliams/pact/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlakeWilliams/pact/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlakeWilliams/pact/contents/{+path}","compare_url":"https://api.github.com/repos/BlakeWilliams/pact/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlakeWilliams/pact/merges","archive_url":"https://api.github.com/repos/BlakeWilliams/pact/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlakeWilliams/pact/downloads","issues_url":"https://api.github.com/repos/BlakeWilliams/pact/issues{/number}","pulls_url":"https://api.github.com/repos/BlakeWilliams/pact/pulls{/number}","milestones_url":"https://api.github.com/repos/BlakeWilliams/pact/milestones{/number}","notifications_url":"https://api.github.com/repos/BlakeWilliams/pact/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlakeWilliams/pact/labels{/name}","releases_url":"https://api.github.com/repos/BlakeWilliams/pact/releases{/id}","created_at":"2015-01-05T23:28:09Z","updated_at":"2015-02-25T21:53:20Z","pushed_at":"2015-02-26T16:42:01Z","git_url":"git://github.com/BlakeWilliams/pact.git","ssh_url":"git@github.com:BlakeWilliams/pact.git","clone_url":"https://github.com/BlakeWilliams/pact.git","svn_url":"https://github.com/BlakeWilliams/pact","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/2"},"html":{"href":"https://github.com/BlakeWilliams/pact/pull/2"},"issue":{"href":"https://api.github.com/repos/BlakeWilliams/pact/issues/2"},"comments":{"href":"https://api.github.com/repos/BlakeWilliams/pact/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/BlakeWilliams/pact/statuses/368054c50dc83eeee6debfb856bbefb1336f23db"}}}}