{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/59983430","id":59983430,"diff_hunk":"@@ -0,0 +1,75 @@\n+require 'airport.rb'\n+require 'rspec/expectations'\n+\n+\n+describe Airport do\n+  subject(:airport) { described_class.new }\n+  let(:landed_plane) {double :landed_plane, landed?: true}\n+  let(:plane) {double :plane, landed?: false}\n+\n+    it { expect(subject).to respond_to(:accept_for_landing).with(1).argument}\n+    it { expect(subject).to respond_to(:accept_for_take_off).with(1).argument}\n+    it {expect(subject).to respond_to(:airport_space)}\n+\n+    describe '#initialize' do\n+      it \"airport has a variable capacity\" do\n+        capacity = 123\n+        airport = Airport.new(capacity)\n+        expect(airport.capacity).to eq capacity\n+      end\n+    end\n+      it \"sets the the capacity to default value when capacity is not provided\" do\n+    \t  expect(subject.capacity).to eq(Airport::DEFAULT_CAPACITY)\n+      end\n+      describe '#airport_space' do\n+        it \"has parking space\" do\n+           expect(subject.airport_space).to eq []\n+        end\n+      end\n+       describe '#accept_for_landing' do\n+          it \"accepts one plane for landing\" do\n+            allow(plane).to receive(:airport_space)\n+            subject.accept_for_landing(plane)\n+            expect(subject.airport_space).to eq [plane]\n+          end\n+      end\n+    # it \"raises an error message when the weather is too stormy to land\" do\n+         #   #  subject.accept_for_landing(plane)\n+         #   #  expect(subject.planes)).to include plane\n+         #  expect {subject.accept_for_landing}.to raise_error(\"It's too stormy to land\")\n+\n+         it \"raises exception if Airport is full\" do\n+           subject.capacity.times {subject.accept_for_landing(plane)}\n+           expect {subject.accept_for_landing(plane)}.to raise_error(\"Airport is full\")","path":"spec/airport_spec.rb","position":43,"original_position":43,"commit_id":"1534a1d607cdc96ae2fc108ff79fa1f2613fca03","original_commit_id":"1534a1d607cdc96ae2fc108ff79fa1f2613fca03","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. [87/80] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)","created_at":"2016-04-17T12:36:35Z","updated_at":"2016-04-17T12:36:35Z","html_url":"https://github.com/makersacademy/airport_challenge/pull/368#discussion_r59983430","pull_request_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/368","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/59983430"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/368#discussion_r59983430"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/368"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/368","id":66739165,"html_url":"https://github.com/makersacademy/airport_challenge/pull/368","diff_url":"https://github.com/makersacademy/airport_challenge/pull/368.diff","patch_url":"https://github.com/makersacademy/airport_challenge/pull/368.patch","issue_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/368","number":368,"state":"open","locked":false,"title":"first commit on airport_challange","user":{"login":"elibar-uk","id":15984662,"avatar_url":"https://avatars.githubusercontent.com/u/15984662?v=3","gravatar_id":"","url":"https://api.github.com/users/elibar-uk","html_url":"https://github.com/elibar-uk","followers_url":"https://api.github.com/users/elibar-uk/followers","following_url":"https://api.github.com/users/elibar-uk/following{/other_user}","gists_url":"https://api.github.com/users/elibar-uk/gists{/gist_id}","starred_url":"https://api.github.com/users/elibar-uk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elibar-uk/subscriptions","organizations_url":"https://api.github.com/users/elibar-uk/orgs","repos_url":"https://api.github.com/users/elibar-uk/repos","events_url":"https://api.github.com/users/elibar-uk/events{/privacy}","received_events_url":"https://api.github.com/users/elibar-uk/received_events","type":"User","site_admin":false},"body":"adds Airport and Plane spec and classes","created_at":"2016-04-16T14:17:02Z","updated_at":"2016-04-17T12:36:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03d1f7e1a8fa47025c2fd328e83388eed0e3cbc3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/368/commits","review_comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/368/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/368/comments","statuses_url":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/1534a1d607cdc96ae2fc108ff79fa1f2613fca03","head":{"label":"elibar-uk:master","ref":"master","sha":"1534a1d607cdc96ae2fc108ff79fa1f2613fca03","user":{"login":"elibar-uk","id":15984662,"avatar_url":"https://avatars.githubusercontent.com/u/15984662?v=3","gravatar_id":"","url":"https://api.github.com/users/elibar-uk","html_url":"https://github.com/elibar-uk","followers_url":"https://api.github.com/users/elibar-uk/followers","following_url":"https://api.github.com/users/elibar-uk/following{/other_user}","gists_url":"https://api.github.com/users/elibar-uk/gists{/gist_id}","starred_url":"https://api.github.com/users/elibar-uk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elibar-uk/subscriptions","organizations_url":"https://api.github.com/users/elibar-uk/orgs","repos_url":"https://api.github.com/users/elibar-uk/repos","events_url":"https://api.github.com/users/elibar-uk/events{/privacy}","received_events_url":"https://api.github.com/users/elibar-uk/received_events","type":"User","site_admin":false},"repo":{"id":56374146,"name":"airport_challenge","full_name":"elibar-uk/airport_challenge","owner":{"login":"elibar-uk","id":15984662,"avatar_url":"https://avatars.githubusercontent.com/u/15984662?v=3","gravatar_id":"","url":"https://api.github.com/users/elibar-uk","html_url":"https://github.com/elibar-uk","followers_url":"https://api.github.com/users/elibar-uk/followers","following_url":"https://api.github.com/users/elibar-uk/following{/other_user}","gists_url":"https://api.github.com/users/elibar-uk/gists{/gist_id}","starred_url":"https://api.github.com/users/elibar-uk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elibar-uk/subscriptions","organizations_url":"https://api.github.com/users/elibar-uk/orgs","repos_url":"https://api.github.com/users/elibar-uk/repos","events_url":"https://api.github.com/users/elibar-uk/events{/privacy}","received_events_url":"https://api.github.com/users/elibar-uk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elibar-uk/airport_challenge","description":"Fly!","fork":true,"url":"https://api.github.com/repos/elibar-uk/airport_challenge","forks_url":"https://api.github.com/repos/elibar-uk/airport_challenge/forks","keys_url":"https://api.github.com/repos/elibar-uk/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elibar-uk/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elibar-uk/airport_challenge/teams","hooks_url":"https://api.github.com/repos/elibar-uk/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/elibar-uk/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/elibar-uk/airport_challenge/events","assignees_url":"https://api.github.com/repos/elibar-uk/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/elibar-uk/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/elibar-uk/airport_challenge/tags","blobs_url":"https://api.github.com/repos/elibar-uk/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elibar-uk/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elibar-uk/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/elibar-uk/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elibar-uk/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/elibar-uk/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/elibar-uk/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/elibar-uk/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/elibar-uk/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/elibar-uk/airport_challenge/subscription","commits_url":"https://api.github.com/repos/elibar-uk/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/elibar-uk/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/elibar-uk/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/elibar-uk/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/elibar-uk/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/elibar-uk/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elibar-uk/airport_challenge/merges","archive_url":"https://api.github.com/repos/elibar-uk/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elibar-uk/airport_challenge/downloads","issues_url":"https://api.github.com/repos/elibar-uk/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/elibar-uk/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/elibar-uk/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/elibar-uk/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elibar-uk/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/elibar-uk/airport_challenge/releases{/id}","deployments_url":"https://api.github.com/repos/elibar-uk/airport_challenge/deployments","created_at":"2016-04-16T08:44:04Z","updated_at":"2016-04-16T08:44:06Z","pushed_at":"2016-04-17T12:36:31Z","git_url":"git://github.com/elibar-uk/airport_challenge.git","ssh_url":"git@github.com:elibar-uk/airport_challenge.git","clone_url":"https://github.com/elibar-uk/airport_challenge.git","svn_url":"https://github.com/elibar-uk/airport_challenge","homepage":"","size":106,"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-04-15T15:36:25Z","pushed_at":"2016-04-17T12:36:31Z","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":21282,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":341,"mirror_url":null,"open_issues_count":55,"forks":341,"open_issues":55,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/368"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/368"},"issue":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/368"},"comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/368/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/368/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/368/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/1534a1d607cdc96ae2fc108ff79fa1f2613fca03"}}}}