{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/50645404","id":50645404,"diff_hunk":"@@ -0,0 +1,55 @@\n+require 'airport'\n+\n+describe Airport do \n+\n+\n+\tit {is_expected.to respond_to(:take_off).with(2).argument}\n+\n+\tit {is_expected.to respond_to(:land).with(2).argument}\n+\n+\tit {is_expected. to respond_to(:full?)}\n+\n+\tit 'has a default capacity' do\n+    \texpect(subject.capacity).to eq Airport::DEFAULT_CAPACITY\n+\tend\n+\n+\tcontext 'full' do\n+\t\tlet(:weather){double(\"weather\", :stormy? => false)}\n+\tit 'error when full due to capacity' do\n+\t\tsubject.capacity.times{subject.land('plane', weather)}\n+ \t\texpect {subject.land('plane', weather)}.to raise_error(\"Error: airport is full\")\n+     end\n+    end\n+\n+\n+\n+\tcontext 'stormy weather' do\n+\t\tlet(:weather){double(\"weather\", :stormy? => true)}\n+\n+\t\t\tit 'should raise error if plane tries to land when stormy' do\n+\t\t\t expect {subject.land(\"plane\",weather)}.to raise_error \"Cannot land in stormy weather\"\n+\t\t\tend\n+\n+\t\t\tit 'should raise error if plane takes off when stormy' do\n+\t\t\texpect {subject.take_off(\"plane\",weather)}.to raise_error \"Cannot take off in stormy weather\"\n+\t\t\tend\n+\n+\tend\n+\t\t\n+\n+\n+\tcontext 'good weather' do\n+\t\t\n+\t\tlet(:weather){double(\"weather\", :stormy? => false)}\n+\t\t\t\n+\t\t\tit 'should put plane in the airport ' do\n+\t\t\texpect(subject.land('plane', weather)).to include ('plane')\n+\t\t\tend\n+\n+\t\t\tit \"should remove that plane from the airport\" do\n+\t\t\t\tsubject.land('plane', weather)\n+\t\t\t\texpect(subject.take_off('plane', weather)).not_to include ('plane')","path":"spec/airport_spec.rb","position":51,"original_position":51,"commit_id":"d90f30dbc9ecc726dd081c7ae8aacbcdcf6f7b3a","original_commit_id":"d90f30dbc9ecc726dd081c7ae8aacbcdcf6f7b3a","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":"Lint/ParenthesesAsGroupedExpression: `(...)` interpreted as grouped expression. (https://github.com/bbatsov/ruby-style-guide#parens-no-spaces)<br>Style/RedundantParentheses: Don't use parentheses around a literal.","created_at":"2016-01-24T23:51:10Z","updated_at":"2016-01-24T23:51:10Z","html_url":"https://github.com/makersacademy/airport_challenge/pull/319#discussion_r50645404","pull_request_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/319","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/50645404"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/319#discussion_r50645404"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/319"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/319","id":57018090,"html_url":"https://github.com/makersacademy/airport_challenge/pull/319","diff_url":"https://github.com/makersacademy/airport_challenge/pull/319.diff","patch_url":"https://github.com/makersacademy/airport_challenge/pull/319.patch","issue_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/319","number":319,"state":"open","locked":false,"title":"Airport Challenge, ready for review. Edge cases could be added.","user":{"login":"HannSO","id":16134739,"avatar_url":"https://avatars.githubusercontent.com/u/16134739?v=3","gravatar_id":"","url":"https://api.github.com/users/HannSO","html_url":"https://github.com/HannSO","followers_url":"https://api.github.com/users/HannSO/followers","following_url":"https://api.github.com/users/HannSO/following{/other_user}","gists_url":"https://api.github.com/users/HannSO/gists{/gist_id}","starred_url":"https://api.github.com/users/HannSO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HannSO/subscriptions","organizations_url":"https://api.github.com/users/HannSO/orgs","repos_url":"https://api.github.com/users/HannSO/repos","events_url":"https://api.github.com/users/HannSO/events{/privacy}","received_events_url":"https://api.github.com/users/HannSO/received_events","type":"User","site_admin":false},"body":"Airport challenge. Would still like to add edge cases.","created_at":"2016-01-24T23:50:28Z","updated_at":"2016-01-24T23:51:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c3815cb18d81a99acdb5d1a168f1513f5920f4c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/319/commits","review_comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/319/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/319/comments","statuses_url":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/d90f30dbc9ecc726dd081c7ae8aacbcdcf6f7b3a","head":{"label":"HannSO:master","ref":"master","sha":"d90f30dbc9ecc726dd081c7ae8aacbcdcf6f7b3a","user":{"login":"HannSO","id":16134739,"avatar_url":"https://avatars.githubusercontent.com/u/16134739?v=3","gravatar_id":"","url":"https://api.github.com/users/HannSO","html_url":"https://github.com/HannSO","followers_url":"https://api.github.com/users/HannSO/followers","following_url":"https://api.github.com/users/HannSO/following{/other_user}","gists_url":"https://api.github.com/users/HannSO/gists{/gist_id}","starred_url":"https://api.github.com/users/HannSO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HannSO/subscriptions","organizations_url":"https://api.github.com/users/HannSO/orgs","repos_url":"https://api.github.com/users/HannSO/repos","events_url":"https://api.github.com/users/HannSO/events{/privacy}","received_events_url":"https://api.github.com/users/HannSO/received_events","type":"User","site_admin":false},"repo":{"id":50263348,"name":"airport_challenge","full_name":"HannSO/airport_challenge","owner":{"login":"HannSO","id":16134739,"avatar_url":"https://avatars.githubusercontent.com/u/16134739?v=3","gravatar_id":"","url":"https://api.github.com/users/HannSO","html_url":"https://github.com/HannSO","followers_url":"https://api.github.com/users/HannSO/followers","following_url":"https://api.github.com/users/HannSO/following{/other_user}","gists_url":"https://api.github.com/users/HannSO/gists{/gist_id}","starred_url":"https://api.github.com/users/HannSO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HannSO/subscriptions","organizations_url":"https://api.github.com/users/HannSO/orgs","repos_url":"https://api.github.com/users/HannSO/repos","events_url":"https://api.github.com/users/HannSO/events{/privacy}","received_events_url":"https://api.github.com/users/HannSO/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HannSO/airport_challenge","description":"Fly!","fork":true,"url":"https://api.github.com/repos/HannSO/airport_challenge","forks_url":"https://api.github.com/repos/HannSO/airport_challenge/forks","keys_url":"https://api.github.com/repos/HannSO/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HannSO/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HannSO/airport_challenge/teams","hooks_url":"https://api.github.com/repos/HannSO/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/HannSO/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/HannSO/airport_challenge/events","assignees_url":"https://api.github.com/repos/HannSO/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/HannSO/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/HannSO/airport_challenge/tags","blobs_url":"https://api.github.com/repos/HannSO/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HannSO/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HannSO/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/HannSO/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HannSO/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/HannSO/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/HannSO/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/HannSO/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/HannSO/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/HannSO/airport_challenge/subscription","commits_url":"https://api.github.com/repos/HannSO/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/HannSO/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/HannSO/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/HannSO/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/HannSO/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/HannSO/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HannSO/airport_challenge/merges","archive_url":"https://api.github.com/repos/HannSO/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HannSO/airport_challenge/downloads","issues_url":"https://api.github.com/repos/HannSO/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/HannSO/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/HannSO/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/HannSO/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HannSO/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/HannSO/airport_challenge/releases{/id}","deployments_url":"https://api.github.com/repos/HannSO/airport_challenge/deployments","created_at":"2016-01-23T23:19:22Z","updated_at":"2016-01-23T23:19:23Z","pushed_at":"2016-01-24T23:49:31Z","git_url":"git://github.com/HannSO/airport_challenge.git","ssh_url":"git@github.com:HannSO/airport_challenge.git","clone_url":"https://github.com/HannSO/airport_challenge.git","svn_url":"https://github.com/HannSO/airport_challenge","homepage":"","size":91,"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-24T23:50:28Z","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":78,"forks":270,"open_issues":78,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/319"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/319"},"issue":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/319"},"comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/319/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/319/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/319/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/d90f30dbc9ecc726dd081c7ae8aacbcdcf6f7b3a"}}}}