{"action":"created","comment":{"url":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/comments/54359588","id":54359588,"diff_hunk":"@@ -0,0 +1,23 @@\n+require \"rails_helper\"\n+\n+RSpec.feature \"User cannot buy rewards that are too expensive\" do\n+  scenario \"gets the index page if reward is too expensive\" do\n+    # as a logged in User\n+    username = \"harry\"\n+    password = \"potter\"\n+    harry = create_user(username, password)\n+    Reward.create(name: \"Golden Snitch\", cost: 5000)\n+    harry.points.create(value: 30)\n+\n+    login(username, password)\n+\n+    click_on \"Redeem points\"\n+\n+    click_on \"Buy Golden Snitch\"\n+    \n+    expect(page).to have_content \"Sorry you don't have enough points for that. Go talk to Snape.\"\n+    expect(page).to have_content \"Golden Snitch\"\n+    expect(current_path).to eq  # I get an error","path":"spec/features/user_cant_buy_rewards_that_are_too_expensive_spec.rb","position":20,"original_position":20,"commit_id":"e81a5c3dbdbbd8c8f8b6f9e3cde0723f4552218b","original_commit_id":"e81a5c3dbdbbd8c8f8b6f9e3cde0723f4552218b","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Unnecessary spacing detected.","created_at":"2016-02-28T23:56:58Z","updated_at":"2016-02-28T23:56:58Z","html_url":"https://github.com/erinnachen/sorting-hat/pull/38#discussion_r54359588","pull_request_url":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/comments/54359588"},"html":{"href":"https://github.com/erinnachen/sorting-hat/pull/38#discussion_r54359588"},"pull_request":{"href":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/38","id":61013469,"html_url":"https://github.com/erinnachen/sorting-hat/pull/38","diff_url":"https://github.com/erinnachen/sorting-hat/pull/38.diff","patch_url":"https://github.com/erinnachen/sorting-hat/pull/38.patch","issue_url":"https://api.github.com/repos/erinnachen/sorting-hat/issues/38","number":38,"state":"open","locked":false,"title":"Add user cant buy rewards that are too expensive functionality","user":{"login":"erinnachen","id":12789537,"avatar_url":"https://avatars.githubusercontent.com/u/12789537?v=3","gravatar_id":"","url":"https://api.github.com/users/erinnachen","html_url":"https://github.com/erinnachen","followers_url":"https://api.github.com/users/erinnachen/followers","following_url":"https://api.github.com/users/erinnachen/following{/other_user}","gists_url":"https://api.github.com/users/erinnachen/gists{/gist_id}","starred_url":"https://api.github.com/users/erinnachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinnachen/subscriptions","organizations_url":"https://api.github.com/users/erinnachen/orgs","repos_url":"https://api.github.com/users/erinnachen/repos","events_url":"https://api.github.com/users/erinnachen/events{/privacy}","received_events_url":"https://api.github.com/users/erinnachen/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-28T23:56:55Z","updated_at":"2016-02-28T23:56:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ccf89fdcd2d296048bb80df946ff0689cd43576","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/38/commits","review_comments_url":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/38/comments","review_comment_url":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/erinnachen/sorting-hat/issues/38/comments","statuses_url":"https://api.github.com/repos/erinnachen/sorting-hat/statuses/e81a5c3dbdbbd8c8f8b6f9e3cde0723f4552218b","head":{"label":"erinnachen:user-cant-buy-reward-more-than-the-points-that-they-have","ref":"user-cant-buy-reward-more-than-the-points-that-they-have","sha":"e81a5c3dbdbbd8c8f8b6f9e3cde0723f4552218b","user":{"login":"erinnachen","id":12789537,"avatar_url":"https://avatars.githubusercontent.com/u/12789537?v=3","gravatar_id":"","url":"https://api.github.com/users/erinnachen","html_url":"https://github.com/erinnachen","followers_url":"https://api.github.com/users/erinnachen/followers","following_url":"https://api.github.com/users/erinnachen/following{/other_user}","gists_url":"https://api.github.com/users/erinnachen/gists{/gist_id}","starred_url":"https://api.github.com/users/erinnachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinnachen/subscriptions","organizations_url":"https://api.github.com/users/erinnachen/orgs","repos_url":"https://api.github.com/users/erinnachen/repos","events_url":"https://api.github.com/users/erinnachen/events{/privacy}","received_events_url":"https://api.github.com/users/erinnachen/received_events","type":"User","site_admin":false},"repo":{"id":52553579,"name":"sorting-hat","full_name":"erinnachen/sorting-hat","owner":{"login":"erinnachen","id":12789537,"avatar_url":"https://avatars.githubusercontent.com/u/12789537?v=3","gravatar_id":"","url":"https://api.github.com/users/erinnachen","html_url":"https://github.com/erinnachen","followers_url":"https://api.github.com/users/erinnachen/followers","following_url":"https://api.github.com/users/erinnachen/following{/other_user}","gists_url":"https://api.github.com/users/erinnachen/gists{/gist_id}","starred_url":"https://api.github.com/users/erinnachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinnachen/subscriptions","organizations_url":"https://api.github.com/users/erinnachen/orgs","repos_url":"https://api.github.com/users/erinnachen/repos","events_url":"https://api.github.com/users/erinnachen/events{/privacy}","received_events_url":"https://api.github.com/users/erinnachen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erinnachen/sorting-hat","description":null,"fork":false,"url":"https://api.github.com/repos/erinnachen/sorting-hat","forks_url":"https://api.github.com/repos/erinnachen/sorting-hat/forks","keys_url":"https://api.github.com/repos/erinnachen/sorting-hat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erinnachen/sorting-hat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erinnachen/sorting-hat/teams","hooks_url":"https://api.github.com/repos/erinnachen/sorting-hat/hooks","issue_events_url":"https://api.github.com/repos/erinnachen/sorting-hat/issues/events{/number}","events_url":"https://api.github.com/repos/erinnachen/sorting-hat/events","assignees_url":"https://api.github.com/repos/erinnachen/sorting-hat/assignees{/user}","branches_url":"https://api.github.com/repos/erinnachen/sorting-hat/branches{/branch}","tags_url":"https://api.github.com/repos/erinnachen/sorting-hat/tags","blobs_url":"https://api.github.com/repos/erinnachen/sorting-hat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erinnachen/sorting-hat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erinnachen/sorting-hat/git/refs{/sha}","trees_url":"https://api.github.com/repos/erinnachen/sorting-hat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erinnachen/sorting-hat/statuses/{sha}","languages_url":"https://api.github.com/repos/erinnachen/sorting-hat/languages","stargazers_url":"https://api.github.com/repos/erinnachen/sorting-hat/stargazers","contributors_url":"https://api.github.com/repos/erinnachen/sorting-hat/contributors","subscribers_url":"https://api.github.com/repos/erinnachen/sorting-hat/subscribers","subscription_url":"https://api.github.com/repos/erinnachen/sorting-hat/subscription","commits_url":"https://api.github.com/repos/erinnachen/sorting-hat/commits{/sha}","git_commits_url":"https://api.github.com/repos/erinnachen/sorting-hat/git/commits{/sha}","comments_url":"https://api.github.com/repos/erinnachen/sorting-hat/comments{/number}","issue_comment_url":"https://api.github.com/repos/erinnachen/sorting-hat/issues/comments{/number}","contents_url":"https://api.github.com/repos/erinnachen/sorting-hat/contents/{+path}","compare_url":"https://api.github.com/repos/erinnachen/sorting-hat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erinnachen/sorting-hat/merges","archive_url":"https://api.github.com/repos/erinnachen/sorting-hat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erinnachen/sorting-hat/downloads","issues_url":"https://api.github.com/repos/erinnachen/sorting-hat/issues{/number}","pulls_url":"https://api.github.com/repos/erinnachen/sorting-hat/pulls{/number}","milestones_url":"https://api.github.com/repos/erinnachen/sorting-hat/milestones{/number}","notifications_url":"https://api.github.com/repos/erinnachen/sorting-hat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erinnachen/sorting-hat/labels{/name}","releases_url":"https://api.github.com/repos/erinnachen/sorting-hat/releases{/id}","deployments_url":"https://api.github.com/repos/erinnachen/sorting-hat/deployments","created_at":"2016-02-25T20:11:34Z","updated_at":"2016-02-25T20:12:00Z","pushed_at":"2016-02-28T23:56:55Z","git_url":"git://github.com/erinnachen/sorting-hat.git","ssh_url":"git@github.com:erinnachen/sorting-hat.git","clone_url":"https://github.com/erinnachen/sorting-hat.git","svn_url":"https://github.com/erinnachen/sorting-hat","homepage":null,"size":4313,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"erinnachen:master","ref":"master","sha":"8183ac132d31b04c9b0c05d7d8638229dfbbc750","user":{"login":"erinnachen","id":12789537,"avatar_url":"https://avatars.githubusercontent.com/u/12789537?v=3","gravatar_id":"","url":"https://api.github.com/users/erinnachen","html_url":"https://github.com/erinnachen","followers_url":"https://api.github.com/users/erinnachen/followers","following_url":"https://api.github.com/users/erinnachen/following{/other_user}","gists_url":"https://api.github.com/users/erinnachen/gists{/gist_id}","starred_url":"https://api.github.com/users/erinnachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinnachen/subscriptions","organizations_url":"https://api.github.com/users/erinnachen/orgs","repos_url":"https://api.github.com/users/erinnachen/repos","events_url":"https://api.github.com/users/erinnachen/events{/privacy}","received_events_url":"https://api.github.com/users/erinnachen/received_events","type":"User","site_admin":false},"repo":{"id":52553579,"name":"sorting-hat","full_name":"erinnachen/sorting-hat","owner":{"login":"erinnachen","id":12789537,"avatar_url":"https://avatars.githubusercontent.com/u/12789537?v=3","gravatar_id":"","url":"https://api.github.com/users/erinnachen","html_url":"https://github.com/erinnachen","followers_url":"https://api.github.com/users/erinnachen/followers","following_url":"https://api.github.com/users/erinnachen/following{/other_user}","gists_url":"https://api.github.com/users/erinnachen/gists{/gist_id}","starred_url":"https://api.github.com/users/erinnachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erinnachen/subscriptions","organizations_url":"https://api.github.com/users/erinnachen/orgs","repos_url":"https://api.github.com/users/erinnachen/repos","events_url":"https://api.github.com/users/erinnachen/events{/privacy}","received_events_url":"https://api.github.com/users/erinnachen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erinnachen/sorting-hat","description":null,"fork":false,"url":"https://api.github.com/repos/erinnachen/sorting-hat","forks_url":"https://api.github.com/repos/erinnachen/sorting-hat/forks","keys_url":"https://api.github.com/repos/erinnachen/sorting-hat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erinnachen/sorting-hat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erinnachen/sorting-hat/teams","hooks_url":"https://api.github.com/repos/erinnachen/sorting-hat/hooks","issue_events_url":"https://api.github.com/repos/erinnachen/sorting-hat/issues/events{/number}","events_url":"https://api.github.com/repos/erinnachen/sorting-hat/events","assignees_url":"https://api.github.com/repos/erinnachen/sorting-hat/assignees{/user}","branches_url":"https://api.github.com/repos/erinnachen/sorting-hat/branches{/branch}","tags_url":"https://api.github.com/repos/erinnachen/sorting-hat/tags","blobs_url":"https://api.github.com/repos/erinnachen/sorting-hat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erinnachen/sorting-hat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erinnachen/sorting-hat/git/refs{/sha}","trees_url":"https://api.github.com/repos/erinnachen/sorting-hat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erinnachen/sorting-hat/statuses/{sha}","languages_url":"https://api.github.com/repos/erinnachen/sorting-hat/languages","stargazers_url":"https://api.github.com/repos/erinnachen/sorting-hat/stargazers","contributors_url":"https://api.github.com/repos/erinnachen/sorting-hat/contributors","subscribers_url":"https://api.github.com/repos/erinnachen/sorting-hat/subscribers","subscription_url":"https://api.github.com/repos/erinnachen/sorting-hat/subscription","commits_url":"https://api.github.com/repos/erinnachen/sorting-hat/commits{/sha}","git_commits_url":"https://api.github.com/repos/erinnachen/sorting-hat/git/commits{/sha}","comments_url":"https://api.github.com/repos/erinnachen/sorting-hat/comments{/number}","issue_comment_url":"https://api.github.com/repos/erinnachen/sorting-hat/issues/comments{/number}","contents_url":"https://api.github.com/repos/erinnachen/sorting-hat/contents/{+path}","compare_url":"https://api.github.com/repos/erinnachen/sorting-hat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erinnachen/sorting-hat/merges","archive_url":"https://api.github.com/repos/erinnachen/sorting-hat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erinnachen/sorting-hat/downloads","issues_url":"https://api.github.com/repos/erinnachen/sorting-hat/issues{/number}","pulls_url":"https://api.github.com/repos/erinnachen/sorting-hat/pulls{/number}","milestones_url":"https://api.github.com/repos/erinnachen/sorting-hat/milestones{/number}","notifications_url":"https://api.github.com/repos/erinnachen/sorting-hat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erinnachen/sorting-hat/labels{/name}","releases_url":"https://api.github.com/repos/erinnachen/sorting-hat/releases{/id}","deployments_url":"https://api.github.com/repos/erinnachen/sorting-hat/deployments","created_at":"2016-02-25T20:11:34Z","updated_at":"2016-02-25T20:12:00Z","pushed_at":"2016-02-28T23:56:55Z","git_url":"git://github.com/erinnachen/sorting-hat.git","ssh_url":"git@github.com:erinnachen/sorting-hat.git","clone_url":"https://github.com/erinnachen/sorting-hat.git","svn_url":"https://github.com/erinnachen/sorting-hat","homepage":null,"size":4313,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/38"},"html":{"href":"https://github.com/erinnachen/sorting-hat/pull/38"},"issue":{"href":"https://api.github.com/repos/erinnachen/sorting-hat/issues/38"},"comments":{"href":"https://api.github.com/repos/erinnachen/sorting-hat/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/erinnachen/sorting-hat/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/erinnachen/sorting-hat/statuses/e81a5c3dbdbbd8c8f8b6f9e3cde0723f4552218b"}}}}