{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/29637369","id":29637369,"diff_hunk":"@@ -1,15 +1,44 @@\n require 'capybara/rspec'\n+require 'plane'\n+require 'airport'\n \n-## Note these are just some guidelines!\n-## Feel free to write more tests!!\n+feature 'Planes can take off and land from airport' do\n+  scenario 'A plane can land at the airport' do\n+    aeroplane = Plane.new\n+    airport = Airport.new\n+    airport.allow_landing(aeroplane)\n+  end\n \n-# Given 6 planes, each plane must land.\n-# Be careful of the weather, it could be stormy!\n-# Check when all the planes have landed that they have status \"landed\"\n-# Once all planes are in the air again, check that they have status \"flying!\"\n+  scenario 'Plane can take off from the airport' do\n+    aeroplane = Plane.new\n+    airport = Airport.new\n+    airport.allow_takeoff(aeroplane)\n+  end\n+end\n+\n+feature 'Planes cannot land when airport is full' do\n+  scenario 'A plane tries to land when airport is full' do\n+    aeroplane = Plane.new\n+    airport = Airport.new\n+    6.times { airport.allow_landing Plane.new }\n+    expect { airport.allow_landing Plane.new }.to raise_error 'Airport is full!'\n+  end\n+end\n \n-feature 'Grand Finale' do\n+# feature 'Planes cannot land when conditions are stormy' do\n+#   scenario 'A plane tries to land when it\\'s stormy' do\n+#     aeroplane = Plane.new\n+#     airport = Airport.new\n+#     # (somehow knows it's stormy or not)\n+#     expect { airport.allow_landing Plane.new }.to raise_error 'It\\'s too stormy to fly!'","path":"spec/feature/grand_finale_spec.rb","position":40,"original_position":40,"commit_id":"ff991d661effb94d7c3ad1cc1a40ee918cfc83a7","original_commit_id":"ff991d661effb94d7c3ad1cc1a40ee918cfc83a7","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":"Line is too long. [90/80]","created_at":"2015-05-05T00:36:06Z","updated_at":"2015-05-05T00:36:06Z","html_url":"https://github.com/makersacademy/airport_challenge/pull/57#discussion_r29637369","pull_request_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/comments/29637369"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/57#discussion_r29637369"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/57","id":34653336,"html_url":"https://github.com/makersacademy/airport_challenge/pull/57","diff_url":"https://github.com/makersacademy/airport_challenge/pull/57.diff","patch_url":"https://github.com/makersacademy/airport_challenge/pull/57.patch","issue_url":"https://api.github.com/repos/makersacademy/airport_challenge/issues/57","number":57,"state":"open","locked":false,"title":"Initial pull request","user":{"login":"dan-bolger","id":11099577,"avatar_url":"https://avatars.githubusercontent.com/u/11099577?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-bolger","html_url":"https://github.com/dan-bolger","followers_url":"https://api.github.com/users/dan-bolger/followers","following_url":"https://api.github.com/users/dan-bolger/following{/other_user}","gists_url":"https://api.github.com/users/dan-bolger/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-bolger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-bolger/subscriptions","organizations_url":"https://api.github.com/users/dan-bolger/orgs","repos_url":"https://api.github.com/users/dan-bolger/repos","events_url":"https://api.github.com/users/dan-bolger/events{/privacy}","received_events_url":"https://api.github.com/users/dan-bolger/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-04T16:48:16Z","updated_at":"2015-05-05T00:36:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36d81b51cbcc372f1fef7bb4cc3a6097fe5a2456","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/57/commits","review_comments_url":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/57/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/57/comments","statuses_url":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/ff991d661effb94d7c3ad1cc1a40ee918cfc83a7","head":{"label":"dan-bolger:master","ref":"master","sha":"ff991d661effb94d7c3ad1cc1a40ee918cfc83a7","user":{"login":"dan-bolger","id":11099577,"avatar_url":"https://avatars.githubusercontent.com/u/11099577?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-bolger","html_url":"https://github.com/dan-bolger","followers_url":"https://api.github.com/users/dan-bolger/followers","following_url":"https://api.github.com/users/dan-bolger/following{/other_user}","gists_url":"https://api.github.com/users/dan-bolger/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-bolger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-bolger/subscriptions","organizations_url":"https://api.github.com/users/dan-bolger/orgs","repos_url":"https://api.github.com/users/dan-bolger/repos","events_url":"https://api.github.com/users/dan-bolger/events{/privacy}","received_events_url":"https://api.github.com/users/dan-bolger/received_events","type":"User","site_admin":false},"repo":{"id":34901417,"name":"airport_challenge","full_name":"dan-bolger/airport_challenge","owner":{"login":"dan-bolger","id":11099577,"avatar_url":"https://avatars.githubusercontent.com/u/11099577?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-bolger","html_url":"https://github.com/dan-bolger","followers_url":"https://api.github.com/users/dan-bolger/followers","following_url":"https://api.github.com/users/dan-bolger/following{/other_user}","gists_url":"https://api.github.com/users/dan-bolger/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-bolger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-bolger/subscriptions","organizations_url":"https://api.github.com/users/dan-bolger/orgs","repos_url":"https://api.github.com/users/dan-bolger/repos","events_url":"https://api.github.com/users/dan-bolger/events{/privacy}","received_events_url":"https://api.github.com/users/dan-bolger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dan-bolger/airport_challenge","description":"Fly!","fork":true,"url":"https://api.github.com/repos/dan-bolger/airport_challenge","forks_url":"https://api.github.com/repos/dan-bolger/airport_challenge/forks","keys_url":"https://api.github.com/repos/dan-bolger/airport_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dan-bolger/airport_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dan-bolger/airport_challenge/teams","hooks_url":"https://api.github.com/repos/dan-bolger/airport_challenge/hooks","issue_events_url":"https://api.github.com/repos/dan-bolger/airport_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/dan-bolger/airport_challenge/events","assignees_url":"https://api.github.com/repos/dan-bolger/airport_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/dan-bolger/airport_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/dan-bolger/airport_challenge/tags","blobs_url":"https://api.github.com/repos/dan-bolger/airport_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dan-bolger/airport_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dan-bolger/airport_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/dan-bolger/airport_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dan-bolger/airport_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/dan-bolger/airport_challenge/languages","stargazers_url":"https://api.github.com/repos/dan-bolger/airport_challenge/stargazers","contributors_url":"https://api.github.com/repos/dan-bolger/airport_challenge/contributors","subscribers_url":"https://api.github.com/repos/dan-bolger/airport_challenge/subscribers","subscription_url":"https://api.github.com/repos/dan-bolger/airport_challenge/subscription","commits_url":"https://api.github.com/repos/dan-bolger/airport_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/dan-bolger/airport_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/dan-bolger/airport_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/dan-bolger/airport_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/dan-bolger/airport_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/dan-bolger/airport_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dan-bolger/airport_challenge/merges","archive_url":"https://api.github.com/repos/dan-bolger/airport_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dan-bolger/airport_challenge/downloads","issues_url":"https://api.github.com/repos/dan-bolger/airport_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/dan-bolger/airport_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/dan-bolger/airport_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/dan-bolger/airport_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dan-bolger/airport_challenge/labels{/name}","releases_url":"https://api.github.com/repos/dan-bolger/airport_challenge/releases{/id}","created_at":"2015-05-01T12:15:05Z","updated_at":"2015-05-05T00:36:00Z","pushed_at":"2015-05-05T00:35:59Z","git_url":"git://github.com/dan-bolger/airport_challenge.git","ssh_url":"git@github.com:dan-bolger/airport_challenge.git","clone_url":"https://github.com/dan-bolger/airport_challenge.git","svn_url":"https://github.com/dan-bolger/airport_challenge","homepage":"","size":103,"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":"43c6d17bb76722ca02a8936a5a41581646182671","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-05-01T07:06:13Z","pushed_at":"2015-05-05T00:36: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":2514,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":20,"forks":54,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/57"},"html":{"href":"https://github.com/makersacademy/airport_challenge/pull/57"},"issue":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/57"},"comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/pulls/57/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/57/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/airport_challenge/statuses/ff991d661effb94d7c3ad1cc1a40ee918cfc83a7"}}}}