{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments/36102087","id":36102087,"diff_hunk":"@@ -0,0 +1,45 @@\n+require 'order'\n+\n+describe Order do\n+\n+\tlet(:dish) {double :dish }\n+  let(:restaurant) { double :restaurant }\n+\t\n+\tcontext 'selecting a dish' do\n+\t\tit { is_expected.to respond_to(:select_dish) }\n+\n+\t\tit 'selects dishes from menu' do\n+\t    expect(subject.select_dish('salmon sashimi', 2)).to eq(2)\n+\t  end\n+\n+\t  it 'cannot select dishes that are not on the menu' do\n+\t  \texpect{subject.select_dish('fois gras', 2)}.to raise_error \"We don't serve that item, sorry!\"\n+\t  end\n+\tend\n+\n+\tcontext 'calculating and checking totals' do\n+\t\tit { is_expected.to respond_to(:print_receipt) }\n+\n+\t\tit 'should return total cost of order' do\n+\t\t\tsubject.select_dish('salmon sashimi', 2)\n+\t\t\texpect(subject.print_receipt).to eq(\"Total cost of your meal is £#{'%.2f' % 8.00}\")\n+\t\tend\n+\n+\t\tit 'should raise error if order list is empty' do\n+\t\t\texpect{subject.print_receipt}.to raise_error \"You have not selected any items\"\n+\t\tend\n+\tend\n+\n+\tcontext 'placing order' do\n+\t\tit 'should raise error if order list is empty' do\n+\t\t\texpect{subject.place_order}.to raise_error \"You have not selected any items\"\n+\t\tend\n+\n+\t\tit 'should send message once order has been placed' do\n+      subject.select_dish('salmon sashimi', 2)\n+      expect(restaurant).to receive(:send_confirmation_text)\n+      subject.place_order\n+    end\n+\tend\n+\t","path":"spec/order_spec.rb","position":44,"original_position":44,"commit_id":"7583bb13bc3d9f06244b16d1288e6d762fbb1979","original_commit_id":"7583bb13bc3d9f06244b16d1288e6d762fbb1979","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":"Tab detected.<br>Trailing whitespace detected.","created_at":"2015-08-03T16:22:14Z","updated_at":"2015-08-03T16:22:14Z","html_url":"https://github.com/makersacademy/takeaway-challenge/pull/108#discussion_r36102087","pull_request_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/108","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments/36102087"},"html":{"href":"https://github.com/makersacademy/takeaway-challenge/pull/108#discussion_r36102087"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/108"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/108","id":41425205,"html_url":"https://github.com/makersacademy/takeaway-challenge/pull/108","diff_url":"https://github.com/makersacademy/takeaway-challenge/pull/108.diff","patch_url":"https://github.com/makersacademy/takeaway-challenge/pull/108.patch","issue_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/108","number":108,"state":"open","locked":false,"title":"Takeaway challenge - 02/08","user":{"login":"Kyvyas","id":10929211,"avatar_url":"https://avatars.githubusercontent.com/u/10929211?v=3","gravatar_id":"","url":"https://api.github.com/users/Kyvyas","html_url":"https://github.com/Kyvyas","followers_url":"https://api.github.com/users/Kyvyas/followers","following_url":"https://api.github.com/users/Kyvyas/following{/other_user}","gists_url":"https://api.github.com/users/Kyvyas/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyvyas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyvyas/subscriptions","organizations_url":"https://api.github.com/users/Kyvyas/orgs","repos_url":"https://api.github.com/users/Kyvyas/repos","events_url":"https://api.github.com/users/Kyvyas/events{/privacy}","received_events_url":"https://api.github.com/users/Kyvyas/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-02T21:50:12Z","updated_at":"2015-08-03T16:22:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20413161245e005663a0b63c5af14217546635fc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/108/commits","review_comments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/108/comments","review_comment_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/108/comments","statuses_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/7583bb13bc3d9f06244b16d1288e6d762fbb1979","head":{"label":"Kyvyas:master","ref":"master","sha":"7583bb13bc3d9f06244b16d1288e6d762fbb1979","user":{"login":"Kyvyas","id":10929211,"avatar_url":"https://avatars.githubusercontent.com/u/10929211?v=3","gravatar_id":"","url":"https://api.github.com/users/Kyvyas","html_url":"https://github.com/Kyvyas","followers_url":"https://api.github.com/users/Kyvyas/followers","following_url":"https://api.github.com/users/Kyvyas/following{/other_user}","gists_url":"https://api.github.com/users/Kyvyas/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyvyas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyvyas/subscriptions","organizations_url":"https://api.github.com/users/Kyvyas/orgs","repos_url":"https://api.github.com/users/Kyvyas/repos","events_url":"https://api.github.com/users/Kyvyas/events{/privacy}","received_events_url":"https://api.github.com/users/Kyvyas/received_events","type":"User","site_admin":false},"repo":{"id":40043361,"name":"takeaway-challenge","full_name":"Kyvyas/takeaway-challenge","owner":{"login":"Kyvyas","id":10929211,"avatar_url":"https://avatars.githubusercontent.com/u/10929211?v=3","gravatar_id":"","url":"https://api.github.com/users/Kyvyas","html_url":"https://github.com/Kyvyas","followers_url":"https://api.github.com/users/Kyvyas/followers","following_url":"https://api.github.com/users/Kyvyas/following{/other_user}","gists_url":"https://api.github.com/users/Kyvyas/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyvyas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyvyas/subscriptions","organizations_url":"https://api.github.com/users/Kyvyas/orgs","repos_url":"https://api.github.com/users/Kyvyas/repos","events_url":"https://api.github.com/users/Kyvyas/events{/privacy}","received_events_url":"https://api.github.com/users/Kyvyas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kyvyas/takeaway-challenge","description":"Use the Twilio Gem to order food","fork":true,"url":"https://api.github.com/repos/Kyvyas/takeaway-challenge","forks_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/forks","keys_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/teams","hooks_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/hooks","issue_events_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/events","assignees_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/tags","blobs_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/languages","stargazers_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/stargazers","contributors_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/contributors","subscribers_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/subscribers","subscription_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/subscription","commits_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/merges","archive_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/downloads","issues_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/labels{/name}","releases_url":"https://api.github.com/repos/Kyvyas/takeaway-challenge/releases{/id}","created_at":"2015-08-01T10:29:47Z","updated_at":"2015-08-01T10:29:48Z","pushed_at":"2015-08-03T16:22:09Z","git_url":"git://github.com/Kyvyas/takeaway-challenge.git","ssh_url":"git@github.com:Kyvyas/takeaway-challenge.git","clone_url":"https://github.com/Kyvyas/takeaway-challenge.git","svn_url":"https://github.com/Kyvyas/takeaway-challenge","homepage":null,"size":100,"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":"master"}},"base":{"label":"makersacademy:master","ref":"master","sha":"c72389fb9a94afdc4f48ce975d62221751715c7a","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27006189,"name":"takeaway-challenge","full_name":"makersacademy/takeaway-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/takeaway-challenge","description":"Use the Twilio Gem to order food","fork":false,"url":"https://api.github.com/repos/makersacademy/takeaway-challenge","forks_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/releases{/id}","created_at":"2014-11-22T17:19:46Z","updated_at":"2015-08-03T10:38:46Z","pushed_at":"2015-08-03T16:22:09Z","git_url":"git://github.com/makersacademy/takeaway-challenge.git","ssh_url":"git@github.com:makersacademy/takeaway-challenge.git","clone_url":"https://github.com/makersacademy/takeaway-challenge.git","svn_url":"https://github.com/makersacademy/takeaway-challenge","homepage":null,"size":2324,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":105,"mirror_url":null,"open_issues_count":27,"forks":105,"open_issues":27,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/108"},"html":{"href":"https://github.com/makersacademy/takeaway-challenge/pull/108"},"issue":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/108"},"comments":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/7583bb13bc3d9f06244b16d1288e6d762fbb1979"}}}}