{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/46080097","id":46080097,"diff_hunk":"@@ -0,0 +1,60 @@\n+require 'airport'\n+\n+describe Airport do\n+  describe '#instruct_to_land' do\n+    it {is_expected.to respond_to :instruct_to_land}\n+\n+    it 'should land a plane' do\n+      plane = double(:plane, in_airport_status: false, land: true)\n+      subject.instruct_to_land(plane)\n+      expect(subject.landed_planes).to eq [plane]\n+    end\n+\n+    it 'should check that the plane is in the airport' do\n+      plane = double(:plane, in_airport_status: false, land: true)\n+      subject.instruct_to_land(plane)\n+      expect(subject.landed_planes).to eq [plane]\n+    end\n+\n+    it \"it should change the plane's status to 'in airport'\" do\n+      plane = double(:plane, in_airport_status: true, land: true)\n+      plane.land\n+      expect(plane.in_airport_status).to eq true\n+    end\n+\n+    it \"it should raise an error if the plane is in the airport\" do\n+      plane = double(:plane, in_airport_status: true)\n+      expect{ subject.instruct_to_land(plane) }.to raise_error \"The plane is already in the airport\"\n+    end\n+  end\n+\n+  describe '#instruct_take_off' do\n+    it {is_expected.to respond_to :instruct_take_off}\n+\n+    it 'should let a plane take off' do\n+      plane = double(:plane, in_airport_status: false, take_off: false)\n+      subject.landed_planes << plane\n+      subject.instruct_take_off\n+      expect(subject.landed_planes).not_to eq [plane]\n+    end\n+\n+    it 'should raise an error if no planes are available to take off' do\n+      landed_planes = []\n+      expect { subject.instruct_take_off }.to raise_error \"There are no planes in the airport\"","path":"spec/airport_spec.rb","position":43,"original_position":43,"commit_id":"7d988b5dab84bcaa1649d4829805a6512172cb86","original_commit_id":"7d988b5dab84bcaa1649d4829805a6512172cb86","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":"Metrics/LineLength: Line is too long. [94/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)","created_at":"2015-11-28T14:12:47Z","updated_at":"2015-11-28T14:12:47Z","html_url":"https://github.com/makersacademy/airport_challenge/pull/241#discussion_r46080097","pull_request_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/241","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/46080097"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/241#discussion_r46080097"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/241"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/241","id":52036312,"html_url":"https://github.com/makersacademy/airport_challenge/pull/241","diff_url":"https://github.com/makersacademy/airport_challenge/pull/241.diff","patch_url":"https://github.com/makersacademy/airport_challenge/pull/241.patch","issue_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/241","number":241,"state":"open","locked":false,"title":"Emma's challenge","user":{"login":"emmabeynon","id":13434452,"avatar_url":"https://avatars.githubusercontent.com/u/13434452?v=3","gravatar_id":"","url":"https://api.github.com/users/emmabeynon","html_url":"https://github.com/emmabeynon","followers_url":"https://api.github.com/users/emmabeynon/followers","following_url":"https://api.github.com/users/emmabeynon/following{/other_user}","gists_url":"https://api.github.com/users/emmabeynon/gists{/gist_id}","starred_url":"https://api.github.com/users/emmabeynon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmabeynon/subscriptions","organizations_url":"https://api.github.com/users/emmabeynon/orgs","repos_url":"https://api.github.com/users/emmabeynon/repos","events_url":"https://api.github.com/users/emmabeynon/events{/privacy}","received_events_url":"https://api.github.com/users/emmabeynon/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-28T08:40:03Z","updated_at":"2015-11-28T14:12:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9372ebc9cae85b7e418627247b8e364e48dc5c30","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/241/commits","review_comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/241/comments","review_comment_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/241/comments","statuses_url":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/7d988b5dab84bcaa1649d4829805a6512172cb86","head":{"label":"emmabeynon:master","ref":"master","sha":"7d988b5dab84bcaa1649d4829805a6512172cb86","user":{"login":"emmabeynon","id":13434452,"avatar_url":"https://avatars.githubusercontent.com/u/13434452?v=3","gravatar_id":"","url":"https://api.github.com/users/emmabeynon","html_url":"https://github.com/emmabeynon","followers_url":"https://api.github.com/users/emmabeynon/followers","following_url":"https://api.github.com/users/emmabeynon/following{/other_user}","gists_url":"https://api.github.com/users/emmabeynon/gists{/gist_id}","starred_url":"https://api.github.com/users/emmabeynon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmabeynon/subscriptions","organizations_url":"https://api.github.com/users/emmabeynon/orgs","repos_url":"https://api.github.com/users/emmabeynon/repos","events_url":"https://api.github.com/users/emmabeynon/events{/privacy}","received_events_url":"https://api.github.com/users/emmabeynon/received_events","type":"User","site_admin":false},"repo":{"id":46998195,"name":"airport_challenge","full_name":"emmabeynon/airport_challenge","owner":{"login":"emmabeynon","id":13434452,"avatar_url":"https://avatars.githubusercontent.com/u/13434452?v=3","gravatar_id":"","url":"https://api.github.com/users/emmabeynon","html_url":"https://github.com/emmabeynon","followers_url":"https://api.github.com/users/emmabeynon/followers","following_url":"https://api.github.com/users/emmabeynon/following{/other_user}","gists_url":"https://api.github.com/users/emmabeynon/gists{/gist_id}","starred_url":"https://api.github.com/users/emmabeynon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmabeynon/subscriptions","organizations_url":"https://api.github.com/users/emmabeynon/orgs","repos_url":"https://api.github.com/users/emmabeynon/repos","events_url":"https://api.github.com/users/emmabeynon/events{/privacy}","received_events_url":"https://api.github.com/users/emmabeynon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emmabeynon/airport_challenge","description":"Fly!","fork":true,"url":"https://api.github.com/repos/emmabeynon/airport_challenge","forks_url":"https://api.github.com/repos/emmabeynon/airport_challenge/forks","keys_url":"https://api.github.com/repos/emmabeynon/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emmabeynon/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emmabeynon/airport_challenge/teams","hooks_url":"https://api.github.com/repos/emmabeynon/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/emmabeynon/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/emmabeynon/airport_challenge/events","assignees_url":"https://api.github.com/repos/emmabeynon/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/emmabeynon/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/emmabeynon/airport_challenge/tags","blobs_url":"https://api.github.com/repos/emmabeynon/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emmabeynon/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emmabeynon/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/emmabeynon/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emmabeynon/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/emmabeynon/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/emmabeynon/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/emmabeynon/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/emmabeynon/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/emmabeynon/airport_challenge/subscription","commits_url":"https://api.github.com/repos/emmabeynon/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/emmabeynon/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/emmabeynon/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/emmabeynon/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/emmabeynon/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/emmabeynon/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emmabeynon/airport_challenge/merges","archive_url":"https://api.github.com/repos/emmabeynon/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emmabeynon/airport_challenge/downloads","issues_url":"https://api.github.com/repos/emmabeynon/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/emmabeynon/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/emmabeynon/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/emmabeynon/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emmabeynon/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/emmabeynon/airport_challenge/releases{/id}","created_at":"2015-11-27T20:29:10Z","updated_at":"2015-11-27T20:29:11Z","pushed_at":"2015-11-28T14:12:43Z","git_url":"git://github.com/emmabeynon/airport_challenge.git","ssh_url":"git@github.com:emmabeynon/airport_challenge.git","clone_url":"https://github.com/emmabeynon/airport_challenge.git","svn_url":"https://github.com/emmabeynon/airport_challenge","homepage":"","size":101,"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":"6d108b0c484e92b3461d227e90a7f5fa00702847","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":27074983,"name":"airport_challenge","full_name":"makersacademy/airport_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/airport_challenge","description":"Fly!","fork":false,"url":"https://api.github.com/repos/makersacademy/airport_challenge","forks_url":"https://api.github.com/repos/makersacademy/airport_challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/airport_challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/airport_challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/airport_challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/airport_challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/airport_challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/airport_challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/airport_challenge/releases{/id}","created_at":"2014-11-24T12:30:39Z","updated_at":"2015-08-31T16:45:16Z","pushed_at":"2015-11-28T14:12:44Z","git_url":"git://github.com/makersacademy/airport_challenge.git","ssh_url":"git@github.com:makersacademy/airport_challenge.git","clone_url":"https://github.com/makersacademy/airport_challenge.git","svn_url":"https://github.com/makersacademy/airport_challenge","homepage":"","size":19549,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":211,"mirror_url":null,"open_issues_count":40,"forks":211,"open_issues":40,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/241"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/241"},"issue":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/241"},"comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/241/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/241/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/241/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/7d988b5dab84bcaa1649d4829805a6512172cb86"}}}}