{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/55147014","id":55147014,"diff_hunk":"@@ -0,0 +1,81 @@\n+require 'airport'\n+\n+describe Airport do\n+  subject(:airport) { described_class.new }\n+  let(:plane) {double :plane}\n+\n+  describe 'initialize' do\n+\n+    it 'expects airport to have a capacity that is set to the default capacity if nothing is specified' do\n+      expect(subject.capacity).to eq described_class::DEFAULT_CAPACITY\n+    end\n+\n+    it 'expects the capacity to be able to be set when initialized' do\n+      airport = Airport.new 13\n+      expect(airport.capacity).to eq 13\n+    end\n+\n+  end\n+\n+  describe 'land' do\n+\n+    before {allow(subject).to receive(:is_landed?).and_return(false)}\n+\n+    it 'expects the plane to land into the airport when weather is fine' do\n+      allow(plane).to receive(:is_landed).and_return(true)\n+      allow(subject).to receive(:is_stormy?).and_return(false)\n+      subject.land(plane)\n+      expect(subject.list_planes).to include(plane)\n+    end\n+\n+    it 'expects landing to be prevented when weather is stormy' do\n+      allow(plane).to receive(:is_landed).and_return(true)\n+      allow(subject).to receive(:is_stormy?).and_return(true)\n+      expect{subject.land(plane)}.to raise_error \"It's too stormy to land.\"\n+    end\n+\n+    it 'expects landing to be prevented when airport is full' do\n+      allow(plane).to receive(:is_landed).and_return(true)\n+      allow(subject).to receive(:is_stormy?).and_return(false)\n+      10.times{subject.land(plane)}\n+      expect{subject.land(plane)}.to raise_error \"Airport is full! Plane cannot land.\"\n+    end\n+\n+    it 'expects planes not to be allowed to land if they are already landed' do\n+      allow(subject).to receive(:is_landed?).and_return(true)\n+      expect{subject.land(plane)}.to raise_error \"That plane has already landed.\"","path":"spec/airport_spec.rb","position":46,"original_position":46,"commit_id":"d9082a71bf7cfe06d78fae8a04beeaa0e97186b3","original_commit_id":"d9082a71bf7cfe06d78fae8a04beeaa0e97186b3","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":"Metrics/LineLength: Line is too long. [81/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)","created_at":"2016-03-06T19:58:06Z","updated_at":"2016-03-06T19:58:06Z","html_url":"https://github.com/makersacademy/airport_challenge/pull/350#discussion_r55147014","pull_request_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/350","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/55147014"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/350#discussion_r55147014"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/350"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/350","id":61849413,"html_url":"https://github.com/makersacademy/airport_challenge/pull/350","diff_url":"https://github.com/makersacademy/airport_challenge/pull/350.diff","patch_url":"https://github.com/makersacademy/airport_challenge/pull/350.patch","issue_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/350","number":350,"state":"open","locked":false,"title":"Airport Challenge First Pull Request","user":{"login":"eripheebs","id":16217360,"avatar_url":"https://avatars.githubusercontent.com/u/16217360?v=3","gravatar_id":"","url":"https://api.github.com/users/eripheebs","html_url":"https://github.com/eripheebs","followers_url":"https://api.github.com/users/eripheebs/followers","following_url":"https://api.github.com/users/eripheebs/following{/other_user}","gists_url":"https://api.github.com/users/eripheebs/gists{/gist_id}","starred_url":"https://api.github.com/users/eripheebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eripheebs/subscriptions","organizations_url":"https://api.github.com/users/eripheebs/orgs","repos_url":"https://api.github.com/users/eripheebs/repos","events_url":"https://api.github.com/users/eripheebs/events{/privacy}","received_events_url":"https://api.github.com/users/eripheebs/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-06T17:55:10Z","updated_at":"2016-03-06T19:58:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77da46194decc89d7698db76780b3b488a37977c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/350/commits","review_comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/350/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/350/comments","statuses_url":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/d9082a71bf7cfe06d78fae8a04beeaa0e97186b3","head":{"label":"eripheebs:master","ref":"master","sha":"d9082a71bf7cfe06d78fae8a04beeaa0e97186b3","user":{"login":"eripheebs","id":16217360,"avatar_url":"https://avatars.githubusercontent.com/u/16217360?v=3","gravatar_id":"","url":"https://api.github.com/users/eripheebs","html_url":"https://github.com/eripheebs","followers_url":"https://api.github.com/users/eripheebs/followers","following_url":"https://api.github.com/users/eripheebs/following{/other_user}","gists_url":"https://api.github.com/users/eripheebs/gists{/gist_id}","starred_url":"https://api.github.com/users/eripheebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eripheebs/subscriptions","organizations_url":"https://api.github.com/users/eripheebs/orgs","repos_url":"https://api.github.com/users/eripheebs/repos","events_url":"https://api.github.com/users/eripheebs/events{/privacy}","received_events_url":"https://api.github.com/users/eripheebs/received_events","type":"User","site_admin":false},"repo":{"id":53268119,"name":"airport_challenge","full_name":"eripheebs/airport_challenge","owner":{"login":"eripheebs","id":16217360,"avatar_url":"https://avatars.githubusercontent.com/u/16217360?v=3","gravatar_id":"","url":"https://api.github.com/users/eripheebs","html_url":"https://github.com/eripheebs","followers_url":"https://api.github.com/users/eripheebs/followers","following_url":"https://api.github.com/users/eripheebs/following{/other_user}","gists_url":"https://api.github.com/users/eripheebs/gists{/gist_id}","starred_url":"https://api.github.com/users/eripheebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eripheebs/subscriptions","organizations_url":"https://api.github.com/users/eripheebs/orgs","repos_url":"https://api.github.com/users/eripheebs/repos","events_url":"https://api.github.com/users/eripheebs/events{/privacy}","received_events_url":"https://api.github.com/users/eripheebs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eripheebs/airport_challenge","description":"Fly!","fork":true,"url":"https://api.github.com/repos/eripheebs/airport_challenge","forks_url":"https://api.github.com/repos/eripheebs/airport_challenge/forks","keys_url":"https://api.github.com/repos/eripheebs/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eripheebs/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eripheebs/airport_challenge/teams","hooks_url":"https://api.github.com/repos/eripheebs/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/eripheebs/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/eripheebs/airport_challenge/events","assignees_url":"https://api.github.com/repos/eripheebs/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/eripheebs/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/eripheebs/airport_challenge/tags","blobs_url":"https://api.github.com/repos/eripheebs/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eripheebs/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eripheebs/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/eripheebs/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eripheebs/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/eripheebs/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/eripheebs/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/eripheebs/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/eripheebs/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/eripheebs/airport_challenge/subscription","commits_url":"https://api.github.com/repos/eripheebs/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/eripheebs/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/eripheebs/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/eripheebs/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/eripheebs/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/eripheebs/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eripheebs/airport_challenge/merges","archive_url":"https://api.github.com/repos/eripheebs/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eripheebs/airport_challenge/downloads","issues_url":"https://api.github.com/repos/eripheebs/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/eripheebs/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/eripheebs/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/eripheebs/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eripheebs/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/eripheebs/airport_challenge/releases{/id}","deployments_url":"https://api.github.com/repos/eripheebs/airport_challenge/deployments","created_at":"2016-03-06T17:52:37Z","updated_at":"2016-03-06T17:52:39Z","pushed_at":"2016-03-06T19:58:00Z","git_url":"git://github.com/eripheebs/airport_challenge.git","ssh_url":"git@github.com:eripheebs/airport_challenge.git","clone_url":"https://github.com/eripheebs/airport_challenge.git","svn_url":"https://github.com/eripheebs/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":"cec3652974310a3b901ec8b6cd90eb82229694c3","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-25T23:57:43Z","pushed_at":"2016-03-06T19:58:00Z","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":20515,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":301,"mirror_url":null,"open_issues_count":107,"forks":301,"open_issues":107,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/350"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/350"},"issue":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/350"},"comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/350/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/350/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/350/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/d9082a71bf7cfe06d78fae8a04beeaa0e97186b3"}}}}