{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/50649117","id":50649117,"diff_hunk":"@@ -0,0 +1,90 @@\n+require 'airport'\n+require 'plane'\n+require 'weather'\n+\n+describe 'challenge bonus feature tests' do\n+\n+  let(:airport) {Airport.new(Weather)}\n+  let(:airport2) {Airport.new(Weather, 5)}\n+  let(:plane) {Plane.new}\n+  let(:plane2) {Plane.new}\n+  let(:plane3) {Plane.new}\n+  let(:plane4) {Plane.new}\n+  let(:plane5) {Plane.new}\n+  let(:plane6) {Plane.new}\n+  let(:weather) {Weather.new}\n+\n+  before do\n+    allow(airport).to receive(:stormy?).and_return false\n+    allow(airport2).to receive(:stormy?).and_return false\n+  end\n+  context 'landing' do\n+    it 'planes can land at an airport and are contained within it' do\n+      airport.land(plane)\n+      airport.land(plane2)\n+      airport.land(plane3)\n+      airport.land(plane4)\n+      airport.land(plane5)\n+      airport.land(plane6)\n+      expect(airport.planes_landed).to eq [plane, plane2, plane3, plane4, plane5, plane6]\n+    end\n+\n+    it 'planes cannot land when in an airport' do\n+      airport.land(plane)\n+      expect{ airport.land(plane)}.to raise_error \"The plane has already landed\"\n+    end\n+  end\n+\n+\n+  context 'take off' do\n+    before do\n+      airport.land(plane)\n+      airport.land(plane2)\n+      airport.land(plane3)\n+      airport.land(plane4)\n+      airport.land(plane5)\n+      airport.land(plane6)\n+    end\n+\n+    it 'planes can take off from airport' do\n+      airport.take_off(plane)\n+      airport.take_off(plane2)\n+      airport.take_off(plane3)\n+      airport.take_off(plane4)\n+      airport.take_off(plane5)\n+      airport.take_off(plane6)\n+      expect(airport.planes_landed).to eq []\n+    end\n+\n+    it 'planes can not take off when in the air' do\n+      airport.take_off(plane)\n+      expect{ airport.take_off(plane)}.to raise_error \"The plane is already in the air\"","path":"spec/feature_spec.rb","position":61,"original_position":61,"commit_id":"4406d97031f121eee1f45a4da4e5018a4f6c041e","original_commit_id":"4406d97031f121eee1f45a4da4e5018a4f6c041e","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. [87/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)","created_at":"2016-01-25T02:11:00Z","updated_at":"2016-01-25T02:11:00Z","html_url":"https://github.com/makersacademy/airport_challenge/pull/303#discussion_r50649117","pull_request_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/303","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/50649117"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/303#discussion_r50649117"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/303"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/303","id":57002322,"html_url":"https://github.com/makersacademy/airport_challenge/pull/303","diff_url":"https://github.com/makersacademy/airport_challenge/pull/303.diff","patch_url":"https://github.com/makersacademy/airport_challenge/pull/303.patch","issue_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/303","number":303,"state":"open","locked":false,"title":"Airport Challenge","user":{"login":"ZeshanRasul","id":15655338,"avatar_url":"https://avatars.githubusercontent.com/u/15655338?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeshanRasul","html_url":"https://github.com/ZeshanRasul","followers_url":"https://api.github.com/users/ZeshanRasul/followers","following_url":"https://api.github.com/users/ZeshanRasul/following{/other_user}","gists_url":"https://api.github.com/users/ZeshanRasul/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeshanRasul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeshanRasul/subscriptions","organizations_url":"https://api.github.com/users/ZeshanRasul/orgs","repos_url":"https://api.github.com/users/ZeshanRasul/repos","events_url":"https://api.github.com/users/ZeshanRasul/events{/privacy}","received_events_url":"https://api.github.com/users/ZeshanRasul/received_events","type":"User","site_admin":false},"body":"Week 1 Challenge Pull Request","created_at":"2016-01-24T12:41:56Z","updated_at":"2016-01-25T02:11:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3c3795aec3fe18fa73b25bc29798a16a99d1a43","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/303/commits","review_comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/303/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/303/comments","statuses_url":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/4406d97031f121eee1f45a4da4e5018a4f6c041e","head":{"label":"ZeshanRasul:master","ref":"master","sha":"4406d97031f121eee1f45a4da4e5018a4f6c041e","user":{"login":"ZeshanRasul","id":15655338,"avatar_url":"https://avatars.githubusercontent.com/u/15655338?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeshanRasul","html_url":"https://github.com/ZeshanRasul","followers_url":"https://api.github.com/users/ZeshanRasul/followers","following_url":"https://api.github.com/users/ZeshanRasul/following{/other_user}","gists_url":"https://api.github.com/users/ZeshanRasul/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeshanRasul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeshanRasul/subscriptions","organizations_url":"https://api.github.com/users/ZeshanRasul/orgs","repos_url":"https://api.github.com/users/ZeshanRasul/repos","events_url":"https://api.github.com/users/ZeshanRasul/events{/privacy}","received_events_url":"https://api.github.com/users/ZeshanRasul/received_events","type":"User","site_admin":false},"repo":{"id":50266333,"name":"airport_challenge","full_name":"ZeshanRasul/airport_challenge","owner":{"login":"ZeshanRasul","id":15655338,"avatar_url":"https://avatars.githubusercontent.com/u/15655338?v=3","gravatar_id":"","url":"https://api.github.com/users/ZeshanRasul","html_url":"https://github.com/ZeshanRasul","followers_url":"https://api.github.com/users/ZeshanRasul/followers","following_url":"https://api.github.com/users/ZeshanRasul/following{/other_user}","gists_url":"https://api.github.com/users/ZeshanRasul/gists{/gist_id}","starred_url":"https://api.github.com/users/ZeshanRasul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZeshanRasul/subscriptions","organizations_url":"https://api.github.com/users/ZeshanRasul/orgs","repos_url":"https://api.github.com/users/ZeshanRasul/repos","events_url":"https://api.github.com/users/ZeshanRasul/events{/privacy}","received_events_url":"https://api.github.com/users/ZeshanRasul/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZeshanRasul/airport_challenge","description":"Fly!","fork":true,"url":"https://api.github.com/repos/ZeshanRasul/airport_challenge","forks_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/forks","keys_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/teams","hooks_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/events","assignees_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/tags","blobs_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/subscription","commits_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/merges","archive_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/downloads","issues_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/releases{/id}","deployments_url":"https://api.github.com/repos/ZeshanRasul/airport_challenge/deployments","created_at":"2016-01-24T01:00:38Z","updated_at":"2016-01-24T01:00:39Z","pushed_at":"2016-01-25T02:10:53Z","git_url":"git://github.com/ZeshanRasul/airport_challenge.git","ssh_url":"git@github.com:ZeshanRasul/airport_challenge.git","clone_url":"https://github.com/ZeshanRasul/airport_challenge.git","svn_url":"https://github.com/ZeshanRasul/airport_challenge","homepage":"","size":99,"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":"3b2a5e2f27aa371bdcb3bc6c79d96cf1aee77e4b","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}","deployments_url":"https://api.github.com/repos/makersacademy/airport_challenge/deployments","created_at":"2014-11-24T12:30:39Z","updated_at":"2016-01-22T15:59:04Z","pushed_at":"2016-01-25T02:10:54Z","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":19895,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":270,"mirror_url":null,"open_issues_count":79,"forks":270,"open_issues":79,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/303"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/303"},"issue":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/303"},"comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/303/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/303/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/303/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/4406d97031f121eee1f45a4da4e5018a4f6c041e"}}}}