{"action":"created","comment":{"url":"https://api.github.com/repos/datasektionen/cashflow/pulls/comments/24288245","id":24288245,"diff_hunk":"@@ -55,48 +55,48 @@ def mock_budget_row(extra_attributes = {})\n     describe 'with valid params' do\n       it 'updates the requested budget_row' do\n         budget_row = mock_budget_row(id: '17', budget_post: double('budget_post', name: 'post'))\n-        BudgetRow.stub(:find).with(budget_row.id).and_return(budget_row)\n-        budget_row.should_receive(:update_attributes).with('these' => 'params')\n+        allow(BudgetRow).to receive(:find).with(budget_row.id).and_return(budget_row)\n+        expect(budget_row).to receive(:update_attributes).with('these' => 'params')\n \n         put :update, budget_id: @year, id: budget_row.id, budget_row: { 'these' => 'params' }\n       end\n \n       it 'assigns the requested budget_row as @budget_row' do\n         budget_row = mock_budget_row(id: '17', budget_post: double('budget_post', name: 'post'))\n-        BudgetRow.stub(:find).with(budget_row.id).and_return(budget_row)\n-        budget_row.stub(:update_attributes)\n+        allow(BudgetRow).to receive(:find).with(budget_row.id).and_return(budget_row)","path":"spec/controllers/budget_rows_controller_spec.rb","position":52,"original_position":52,"commit_id":"56dafd6d88364511a371d8d4668592ca8669a12e","original_commit_id":"56dafd6d88364511a371d8d4668592ca8669a12e","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [85/80]","created_at":"2015-02-07T09:02:53Z","updated_at":"2015-02-07T09:02:53Z","html_url":"https://github.com/datasektionen/cashflow/pull/140#discussion_r24288245","pull_request_url":"https://api.github.com/repos/datasektionen/cashflow/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/datasektionen/cashflow/pulls/comments/24288245"},"html":{"href":"https://github.com/datasektionen/cashflow/pull/140#discussion_r24288245"},"pull_request":{"href":"https://api.github.com/repos/datasektionen/cashflow/pulls/140"}}},"pull_request":{"url":"https://api.github.com/repos/datasektionen/cashflow/pulls/140","id":28861577,"html_url":"https://github.com/datasektionen/cashflow/pull/140","diff_url":"https://github.com/datasektionen/cashflow/pull/140.diff","patch_url":"https://github.com/datasektionen/cashflow/pull/140.patch","issue_url":"https://api.github.com/repos/datasektionen/cashflow/issues/140","number":140,"state":"open","locked":false,"title":"Upgrade to rspec 3.2","user":{"login":"Frost","id":2308,"avatar_url":"https://avatars.githubusercontent.com/u/2308?v=3","gravatar_id":"","url":"https://api.github.com/users/Frost","html_url":"https://github.com/Frost","followers_url":"https://api.github.com/users/Frost/followers","following_url":"https://api.github.com/users/Frost/following{/other_user}","gists_url":"https://api.github.com/users/Frost/gists{/gist_id}","starred_url":"https://api.github.com/users/Frost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Frost/subscriptions","organizations_url":"https://api.github.com/users/Frost/orgs","repos_url":"https://api.github.com/users/Frost/repos","events_url":"https://api.github.com/users/Frost/events{/privacy}","received_events_url":"https://api.github.com/users/Frost/received_events","type":"User","site_admin":false},"body":"* Bump `rspec` in gemfile\r\n* Replace `cancan` with `cancancan`\r\n* Add `rspec-activemodel-mocks`\r\n* Run transpec\r\n* Fix some slightly odd `mock_model` magic in a few controller specs","created_at":"2015-02-07T09:02:43Z","updated_at":"2015-02-07T09:02:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c85c8a6157a6c63b19ced63bcdc1090450cdd53","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/datasektionen/cashflow/pulls/140/commits","review_comments_url":"https://api.github.com/repos/datasektionen/cashflow/pulls/140/comments","review_comment_url":"https://api.github.com/repos/datasektionen/cashflow/pulls/comments/{number}","comments_url":"https://api.github.com/repos/datasektionen/cashflow/issues/140/comments","statuses_url":"https://api.github.com/repos/datasektionen/cashflow/statuses/56dafd6d88364511a371d8d4668592ca8669a12e","head":{"label":"datasektionen:upgrade-rspec-3.2","ref":"upgrade-rspec-3.2","sha":"56dafd6d88364511a371d8d4668592ca8669a12e","user":{"login":"datasektionen","id":793965,"avatar_url":"https://avatars.githubusercontent.com/u/793965?v=3","gravatar_id":"","url":"https://api.github.com/users/datasektionen","html_url":"https://github.com/datasektionen","followers_url":"https://api.github.com/users/datasektionen/followers","following_url":"https://api.github.com/users/datasektionen/following{/other_user}","gists_url":"https://api.github.com/users/datasektionen/gists{/gist_id}","starred_url":"https://api.github.com/users/datasektionen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datasektionen/subscriptions","organizations_url":"https://api.github.com/users/datasektionen/orgs","repos_url":"https://api.github.com/users/datasektionen/repos","events_url":"https://api.github.com/users/datasektionen/events{/privacy}","received_events_url":"https://api.github.com/users/datasektionen/received_events","type":"Organization","site_admin":false},"repo":{"id":1795424,"name":"cashflow","full_name":"datasektionen/cashflow","owner":{"login":"datasektionen","id":793965,"avatar_url":"https://avatars.githubusercontent.com/u/793965?v=3","gravatar_id":"","url":"https://api.github.com/users/datasektionen","html_url":"https://github.com/datasektionen","followers_url":"https://api.github.com/users/datasektionen/followers","following_url":"https://api.github.com/users/datasektionen/following{/other_user}","gists_url":"https://api.github.com/users/datasektionen/gists{/gist_id}","starred_url":"https://api.github.com/users/datasektionen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datasektionen/subscriptions","organizations_url":"https://api.github.com/users/datasektionen/orgs","repos_url":"https://api.github.com/users/datasektionen/repos","events_url":"https://api.github.com/users/datasektionen/events{/privacy}","received_events_url":"https://api.github.com/users/datasektionen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datasektionen/cashflow","description":"Inköp/skuld-hantering","fork":false,"url":"https://api.github.com/repos/datasektionen/cashflow","forks_url":"https://api.github.com/repos/datasektionen/cashflow/forks","keys_url":"https://api.github.com/repos/datasektionen/cashflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datasektionen/cashflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datasektionen/cashflow/teams","hooks_url":"https://api.github.com/repos/datasektionen/cashflow/hooks","issue_events_url":"https://api.github.com/repos/datasektionen/cashflow/issues/events{/number}","events_url":"https://api.github.com/repos/datasektionen/cashflow/events","assignees_url":"https://api.github.com/repos/datasektionen/cashflow/assignees{/user}","branches_url":"https://api.github.com/repos/datasektionen/cashflow/branches{/branch}","tags_url":"https://api.github.com/repos/datasektionen/cashflow/tags","blobs_url":"https://api.github.com/repos/datasektionen/cashflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datasektionen/cashflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datasektionen/cashflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/datasektionen/cashflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datasektionen/cashflow/statuses/{sha}","languages_url":"https://api.github.com/repos/datasektionen/cashflow/languages","stargazers_url":"https://api.github.com/repos/datasektionen/cashflow/stargazers","contributors_url":"https://api.github.com/repos/datasektionen/cashflow/contributors","subscribers_url":"https://api.github.com/repos/datasektionen/cashflow/subscribers","subscription_url":"https://api.github.com/repos/datasektionen/cashflow/subscription","commits_url":"https://api.github.com/repos/datasektionen/cashflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/datasektionen/cashflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/datasektionen/cashflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/datasektionen/cashflow/issues/comments/{number}","contents_url":"https://api.github.com/repos/datasektionen/cashflow/contents/{+path}","compare_url":"https://api.github.com/repos/datasektionen/cashflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datasektionen/cashflow/merges","archive_url":"https://api.github.com/repos/datasektionen/cashflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datasektionen/cashflow/downloads","issues_url":"https://api.github.com/repos/datasektionen/cashflow/issues{/number}","pulls_url":"https://api.github.com/repos/datasektionen/cashflow/pulls{/number}","milestones_url":"https://api.github.com/repos/datasektionen/cashflow/milestones{/number}","notifications_url":"https://api.github.com/repos/datasektionen/cashflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datasektionen/cashflow/labels{/name}","releases_url":"https://api.github.com/repos/datasektionen/cashflow/releases{/id}","created_at":"2011-05-24T20:06:22Z","updated_at":"2015-02-07T09:00:05Z","pushed_at":"2015-02-07T09:01:10Z","git_url":"git://github.com/datasektionen/cashflow.git","ssh_url":"git@github.com:datasektionen/cashflow.git","clone_url":"https://github.com/datasektionen/cashflow.git","svn_url":"https://github.com/datasektionen/cashflow","homepage":"","size":2818,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":27,"forks":1,"open_issues":27,"watchers":2,"default_branch":"master"}},"base":{"label":"datasektionen:master","ref":"master","sha":"38aededdc7965693c20baddf58932f47c06b4cda","user":{"login":"datasektionen","id":793965,"avatar_url":"https://avatars.githubusercontent.com/u/793965?v=3","gravatar_id":"","url":"https://api.github.com/users/datasektionen","html_url":"https://github.com/datasektionen","followers_url":"https://api.github.com/users/datasektionen/followers","following_url":"https://api.github.com/users/datasektionen/following{/other_user}","gists_url":"https://api.github.com/users/datasektionen/gists{/gist_id}","starred_url":"https://api.github.com/users/datasektionen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datasektionen/subscriptions","organizations_url":"https://api.github.com/users/datasektionen/orgs","repos_url":"https://api.github.com/users/datasektionen/repos","events_url":"https://api.github.com/users/datasektionen/events{/privacy}","received_events_url":"https://api.github.com/users/datasektionen/received_events","type":"Organization","site_admin":false},"repo":{"id":1795424,"name":"cashflow","full_name":"datasektionen/cashflow","owner":{"login":"datasektionen","id":793965,"avatar_url":"https://avatars.githubusercontent.com/u/793965?v=3","gravatar_id":"","url":"https://api.github.com/users/datasektionen","html_url":"https://github.com/datasektionen","followers_url":"https://api.github.com/users/datasektionen/followers","following_url":"https://api.github.com/users/datasektionen/following{/other_user}","gists_url":"https://api.github.com/users/datasektionen/gists{/gist_id}","starred_url":"https://api.github.com/users/datasektionen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datasektionen/subscriptions","organizations_url":"https://api.github.com/users/datasektionen/orgs","repos_url":"https://api.github.com/users/datasektionen/repos","events_url":"https://api.github.com/users/datasektionen/events{/privacy}","received_events_url":"https://api.github.com/users/datasektionen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datasektionen/cashflow","description":"Inköp/skuld-hantering","fork":false,"url":"https://api.github.com/repos/datasektionen/cashflow","forks_url":"https://api.github.com/repos/datasektionen/cashflow/forks","keys_url":"https://api.github.com/repos/datasektionen/cashflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datasektionen/cashflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datasektionen/cashflow/teams","hooks_url":"https://api.github.com/repos/datasektionen/cashflow/hooks","issue_events_url":"https://api.github.com/repos/datasektionen/cashflow/issues/events{/number}","events_url":"https://api.github.com/repos/datasektionen/cashflow/events","assignees_url":"https://api.github.com/repos/datasektionen/cashflow/assignees{/user}","branches_url":"https://api.github.com/repos/datasektionen/cashflow/branches{/branch}","tags_url":"https://api.github.com/repos/datasektionen/cashflow/tags","blobs_url":"https://api.github.com/repos/datasektionen/cashflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datasektionen/cashflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datasektionen/cashflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/datasektionen/cashflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datasektionen/cashflow/statuses/{sha}","languages_url":"https://api.github.com/repos/datasektionen/cashflow/languages","stargazers_url":"https://api.github.com/repos/datasektionen/cashflow/stargazers","contributors_url":"https://api.github.com/repos/datasektionen/cashflow/contributors","subscribers_url":"https://api.github.com/repos/datasektionen/cashflow/subscribers","subscription_url":"https://api.github.com/repos/datasektionen/cashflow/subscription","commits_url":"https://api.github.com/repos/datasektionen/cashflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/datasektionen/cashflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/datasektionen/cashflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/datasektionen/cashflow/issues/comments/{number}","contents_url":"https://api.github.com/repos/datasektionen/cashflow/contents/{+path}","compare_url":"https://api.github.com/repos/datasektionen/cashflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datasektionen/cashflow/merges","archive_url":"https://api.github.com/repos/datasektionen/cashflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datasektionen/cashflow/downloads","issues_url":"https://api.github.com/repos/datasektionen/cashflow/issues{/number}","pulls_url":"https://api.github.com/repos/datasektionen/cashflow/pulls{/number}","milestones_url":"https://api.github.com/repos/datasektionen/cashflow/milestones{/number}","notifications_url":"https://api.github.com/repos/datasektionen/cashflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datasektionen/cashflow/labels{/name}","releases_url":"https://api.github.com/repos/datasektionen/cashflow/releases{/id}","created_at":"2011-05-24T20:06:22Z","updated_at":"2015-02-07T09:00:05Z","pushed_at":"2015-02-07T09:01:10Z","git_url":"git://github.com/datasektionen/cashflow.git","ssh_url":"git@github.com:datasektionen/cashflow.git","clone_url":"https://github.com/datasektionen/cashflow.git","svn_url":"https://github.com/datasektionen/cashflow","homepage":"","size":2818,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":27,"forks":1,"open_issues":27,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/datasektionen/cashflow/pulls/140"},"html":{"href":"https://github.com/datasektionen/cashflow/pull/140"},"issue":{"href":"https://api.github.com/repos/datasektionen/cashflow/issues/140"},"comments":{"href":"https://api.github.com/repos/datasektionen/cashflow/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/datasektionen/cashflow/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/datasektionen/cashflow/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/datasektionen/cashflow/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/datasektionen/cashflow/statuses/56dafd6d88364511a371d8d4668592ca8669a12e"}}}}