{"action":"created","comment":{"url":"https://api.github.com/repos/AgileVentures/osra/pulls/comments/24319766","id":24319766,"diff_hunk":"@@ -30,38 +34,41 @@\n \n   context '#create' do\n     specify 'successful' do\n-      expect(Sponsor).to receive(:new).and_return(@sponsor_new)\n-      expect {post :create, sponsor: @sponsor_build.attributes }.to change{Sponsor.count}.by 1\n-      expect(response).to redirect_to hq_sponsor_url(Sponsor.find_by_name(@sponsor_build.name))\n+      expect_any_instance_of(Sponsor).to receive(:save) do |_self|\n+        _self.id = sponsor.id\n+        true\n+      end\n+\n+      post :create, sponsor: sponsor.attributes\n+      expect(response).to redirect_to hq_sponsor_url(sponsor)\n     end","path":"spec/controllers/hq/sponsors_controller_spec.rb","position":56,"original_position":56,"commit_id":"680187168ddf2e675f3482b77f17fc4e71f0ffb0","original_commit_id":"680187168ddf2e675f3482b77f17fc4e71f0ffb0","user":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"body":"and we are back at mocking the save :D","created_at":"2015-02-09T10:38:58Z","updated_at":"2015-02-09T10:38:58Z","html_url":"https://github.com/AgileVentures/osra/pull/312#discussion_r24319766","pull_request_url":"https://api.github.com/repos/AgileVentures/osra/pulls/312","_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/comments/24319766"},"html":{"href":"https://github.com/AgileVentures/osra/pull/312#discussion_r24319766"},"pull_request":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/312"}}},"pull_request":{"url":"https://api.github.com/repos/AgileVentures/osra/pulls/312","id":28477092,"html_url":"https://github.com/AgileVentures/osra/pull/312","diff_url":"https://github.com/AgileVentures/osra/pull/312.diff","patch_url":"https://github.com/AgileVentures/osra/pull/312.patch","issue_url":"https://api.github.com/repos/AgileVentures/osra/issues/312","number":312,"state":"open","locked":false,"title":"osra343 controller and view pagination and specs","user":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"body":"https://osraav.atlassian.net/browse/OSRA-343","created_at":"2015-02-02T15:39:09Z","updated_at":"2015-02-09T10:38:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b08b2af8507ba0975634734f94403bed732cbc8d","assignee":null,"milestone":{"url":"https://api.github.com/repos/AgileVentures/osra/milestones/1","labels_url":"https://api.github.com/repos/AgileVentures/osra/milestones/1/labels","id":937950,"number":1,"title":"Remove ActiveAdmin","description":"Complete transition from ActiveAdmin to custom Rails implementation.","creator":{"login":"NikitaAvvakumov","id":5029403,"avatar_url":"https://avatars.githubusercontent.com/u/5029403?v=3","gravatar_id":"","url":"https://api.github.com/users/NikitaAvvakumov","html_url":"https://github.com/NikitaAvvakumov","followers_url":"https://api.github.com/users/NikitaAvvakumov/followers","following_url":"https://api.github.com/users/NikitaAvvakumov/following{/other_user}","gists_url":"https://api.github.com/users/NikitaAvvakumov/gists{/gist_id}","starred_url":"https://api.github.com/users/NikitaAvvakumov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikitaAvvakumov/subscriptions","organizations_url":"https://api.github.com/users/NikitaAvvakumov/orgs","repos_url":"https://api.github.com/users/NikitaAvvakumov/repos","events_url":"https://api.github.com/users/NikitaAvvakumov/events{/privacy}","received_events_url":"https://api.github.com/users/NikitaAvvakumov/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":7,"state":"open","created_at":"2015-01-16T08:39:41Z","updated_at":"2015-02-04T14:04:01Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/AgileVentures/osra/pulls/312/commits","review_comments_url":"https://api.github.com/repos/AgileVentures/osra/pulls/312/comments","review_comment_url":"https://api.github.com/repos/AgileVentures/osra/pulls/comments/{number}","comments_url":"https://api.github.com/repos/AgileVentures/osra/issues/312/comments","statuses_url":"https://api.github.com/repos/AgileVentures/osra/statuses/680187168ddf2e675f3482b77f17fc4e71f0ffb0","head":{"label":"razorcd:osra343_Sponsor#index_pagination","ref":"osra343_Sponsor#index_pagination","sha":"680187168ddf2e675f3482b77f17fc4e71f0ffb0","user":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"repo":{"id":27792556,"name":"osra","full_name":"razorcd/osra","owner":{"login":"razorcd","id":3721810,"avatar_url":"https://avatars.githubusercontent.com/u/3721810?v=3","gravatar_id":"","url":"https://api.github.com/users/razorcd","html_url":"https://github.com/razorcd","followers_url":"https://api.github.com/users/razorcd/followers","following_url":"https://api.github.com/users/razorcd/following{/other_user}","gists_url":"https://api.github.com/users/razorcd/gists{/gist_id}","starred_url":"https://api.github.com/users/razorcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/razorcd/subscriptions","organizations_url":"https://api.github.com/users/razorcd/orgs","repos_url":"https://api.github.com/users/razorcd/repos","events_url":"https://api.github.com/users/razorcd/events{/privacy}","received_events_url":"https://api.github.com/users/razorcd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/razorcd/osra","description":"Sponsor orphans in Syria & insure basic life & education requirements for Syrian children","fork":true,"url":"https://api.github.com/repos/razorcd/osra","forks_url":"https://api.github.com/repos/razorcd/osra/forks","keys_url":"https://api.github.com/repos/razorcd/osra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/razorcd/osra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/razorcd/osra/teams","hooks_url":"https://api.github.com/repos/razorcd/osra/hooks","issue_events_url":"https://api.github.com/repos/razorcd/osra/issues/events{/number}","events_url":"https://api.github.com/repos/razorcd/osra/events","assignees_url":"https://api.github.com/repos/razorcd/osra/assignees{/user}","branches_url":"https://api.github.com/repos/razorcd/osra/branches{/branch}","tags_url":"https://api.github.com/repos/razorcd/osra/tags","blobs_url":"https://api.github.com/repos/razorcd/osra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/razorcd/osra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/razorcd/osra/git/refs{/sha}","trees_url":"https://api.github.com/repos/razorcd/osra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/razorcd/osra/statuses/{sha}","languages_url":"https://api.github.com/repos/razorcd/osra/languages","stargazers_url":"https://api.github.com/repos/razorcd/osra/stargazers","contributors_url":"https://api.github.com/repos/razorcd/osra/contributors","subscribers_url":"https://api.github.com/repos/razorcd/osra/subscribers","subscription_url":"https://api.github.com/repos/razorcd/osra/subscription","commits_url":"https://api.github.com/repos/razorcd/osra/commits{/sha}","git_commits_url":"https://api.github.com/repos/razorcd/osra/git/commits{/sha}","comments_url":"https://api.github.com/repos/razorcd/osra/comments{/number}","issue_comment_url":"https://api.github.com/repos/razorcd/osra/issues/comments/{number}","contents_url":"https://api.github.com/repos/razorcd/osra/contents/{+path}","compare_url":"https://api.github.com/repos/razorcd/osra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/razorcd/osra/merges","archive_url":"https://api.github.com/repos/razorcd/osra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/razorcd/osra/downloads","issues_url":"https://api.github.com/repos/razorcd/osra/issues{/number}","pulls_url":"https://api.github.com/repos/razorcd/osra/pulls{/number}","milestones_url":"https://api.github.com/repos/razorcd/osra/milestones{/number}","notifications_url":"https://api.github.com/repos/razorcd/osra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/razorcd/osra/labels{/name}","releases_url":"https://api.github.com/repos/razorcd/osra/releases{/id}","created_at":"2014-12-09T23:26:34Z","updated_at":"2015-01-03T12:53:02Z","pushed_at":"2015-02-09T10:37:20Z","git_url":"git://github.com/razorcd/osra.git","ssh_url":"git@github.com:razorcd/osra.git","clone_url":"https://github.com/razorcd/osra.git","svn_url":"https://github.com/razorcd/osra","homepage":null,"size":2213,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"develop"}},"base":{"label":"AgileVentures:develop","ref":"develop","sha":"114aa9b3fc45a7f0d8dd439ba94ba4342fc6c46f","user":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"repo":{"id":18855271,"name":"osra","full_name":"AgileVentures/osra","owner":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AgileVentures/osra","description":"Sponsor orphans in Syria & ensure basic life & education requirements for Syrian children","fork":false,"url":"https://api.github.com/repos/AgileVentures/osra","forks_url":"https://api.github.com/repos/AgileVentures/osra/forks","keys_url":"https://api.github.com/repos/AgileVentures/osra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AgileVentures/osra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AgileVentures/osra/teams","hooks_url":"https://api.github.com/repos/AgileVentures/osra/hooks","issue_events_url":"https://api.github.com/repos/AgileVentures/osra/issues/events{/number}","events_url":"https://api.github.com/repos/AgileVentures/osra/events","assignees_url":"https://api.github.com/repos/AgileVentures/osra/assignees{/user}","branches_url":"https://api.github.com/repos/AgileVentures/osra/branches{/branch}","tags_url":"https://api.github.com/repos/AgileVentures/osra/tags","blobs_url":"https://api.github.com/repos/AgileVentures/osra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AgileVentures/osra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AgileVentures/osra/git/refs{/sha}","trees_url":"https://api.github.com/repos/AgileVentures/osra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AgileVentures/osra/statuses/{sha}","languages_url":"https://api.github.com/repos/AgileVentures/osra/languages","stargazers_url":"https://api.github.com/repos/AgileVentures/osra/stargazers","contributors_url":"https://api.github.com/repos/AgileVentures/osra/contributors","subscribers_url":"https://api.github.com/repos/AgileVentures/osra/subscribers","subscription_url":"https://api.github.com/repos/AgileVentures/osra/subscription","commits_url":"https://api.github.com/repos/AgileVentures/osra/commits{/sha}","git_commits_url":"https://api.github.com/repos/AgileVentures/osra/git/commits{/sha}","comments_url":"https://api.github.com/repos/AgileVentures/osra/comments{/number}","issue_comment_url":"https://api.github.com/repos/AgileVentures/osra/issues/comments/{number}","contents_url":"https://api.github.com/repos/AgileVentures/osra/contents/{+path}","compare_url":"https://api.github.com/repos/AgileVentures/osra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AgileVentures/osra/merges","archive_url":"https://api.github.com/repos/AgileVentures/osra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AgileVentures/osra/downloads","issues_url":"https://api.github.com/repos/AgileVentures/osra/issues{/number}","pulls_url":"https://api.github.com/repos/AgileVentures/osra/pulls{/number}","milestones_url":"https://api.github.com/repos/AgileVentures/osra/milestones{/number}","notifications_url":"https://api.github.com/repos/AgileVentures/osra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AgileVentures/osra/labels{/name}","releases_url":"https://api.github.com/repos/AgileVentures/osra/releases{/id}","created_at":"2014-04-16T20:43:09Z","updated_at":"2015-02-06T15:15:17Z","pushed_at":"2015-02-06T15:15:17Z","git_url":"git://github.com/AgileVentures/osra.git","ssh_url":"git@github.com:AgileVentures/osra.git","clone_url":"https://github.com/AgileVentures/osra.git","svn_url":"https://github.com/AgileVentures/osra","homepage":"","size":5022,"stargazers_count":10,"watchers_count":10,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":11,"forks":29,"open_issues":11,"watchers":10,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/312"},"html":{"href":"https://github.com/AgileVentures/osra/pull/312"},"issue":{"href":"https://api.github.com/repos/AgileVentures/osra/issues/312"},"comments":{"href":"https://api.github.com/repos/AgileVentures/osra/issues/312/comments"},"review_comments":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/312/comments"},"review_comment":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/AgileVentures/osra/pulls/312/commits"},"statuses":{"href":"https://api.github.com/repos/AgileVentures/osra/statuses/680187168ddf2e675f3482b77f17fc4e71f0ffb0"}}}}