{"action":"created","comment":{"url":"https://api.github.com/repos/dbalatero/hotel/pulls/comments/173639020","pull_request_review_id":102866743,"id":173639020,"diff_hunk":"@@ -0,0 +1,99 @@\n+require_relative 'spec_helper'\n+\n+describe \"FrontDesk class\" do\n+\n+  describe \"initialize\" do\n+\n+    it \"is an instance of FrontDesk\" do\n+      admin = Hotel::FrontDesk.new\n+      admin.must_be_kind_of Hotel::FrontDesk\n+    end\n+\n+    it \"loads a master list of all rooms\" do\n+      admin = Hotel::FrontDesk.new\n+\n+      admin.rooms.length.must_equal 20\n+      admin.rooms[0].number.must_equal 1\n+    end\n+\n+  end\n+\n+  describe \"make_reservation method\" do\n+\n+    before do\n+      @front_desk_1 = Hotel::FrontDesk.new\n+    end\n+\n+    it \"stores new reservation\" do\n+      dates = { start_date: Date.new(2018,6,7), end_date: Date.new(2018,6,10)}\n+\n+      new_res = @front_desk_1.make_reservation(dates)\n+\n+      @front_desk_1.find_reservations_for( Date.new(2018, 6, 8))\n+        .must_include new_res\n+\n+      new_res.start_date.must_equal Date.new(2018, 6, 7)\n+    end\n+\n+\n+    it \"adds the reservation to front desk's collection of reservations\"\n+\n+    it \"adds the reserved date range to the room's collection of booked dates\"\n+\n+    it \"stores start and end date as Date objects\"\n+\n+    it \"raises an error if end_date is before start_date\"\n+\n+    it \"returns nil if no rooms are available for given date range\"\n+\n+  end\n+  #\n+  describe \"find_reservations_for(date) method\" do\n+\n+    before do\n+      @front_desk_2 = Hotel::FrontDesk.new\n+    end\n+\n+    it \"returns a list of reservations for given date\" do\n+","path":"specs/front_desk_spec.rb","position":58,"original_position":58,"commit_id":"c91c32df5861fecff728197d4dfac5e33a121003","original_commit_id":"c91c32df5861fecff728197d4dfac5e33a121003","user":{"login":"dbalatero","id":59429,"avatar_url":"https://avatars3.githubusercontent.com/u/59429?v=4","gravatar_id":"","url":"https://api.github.com/users/dbalatero","html_url":"https://github.com/dbalatero","followers_url":"https://api.github.com/users/dbalatero/followers","following_url":"https://api.github.com/users/dbalatero/following{/other_user}","gists_url":"https://api.github.com/users/dbalatero/gists{/gist_id}","starred_url":"https://api.github.com/users/dbalatero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbalatero/subscriptions","organizations_url":"https://api.github.com/users/dbalatero/orgs","repos_url":"https://api.github.com/users/dbalatero/repos","events_url":"https://api.github.com/users/dbalatero/events{/privacy}","received_events_url":"https://api.github.com/users/dbalatero/received_events","type":"User","site_admin":false},"body":"remove extra whitespace","created_at":"2018-03-11T00:08:34Z","updated_at":"2018-03-11T00:25:06Z","html_url":"https://github.com/dbalatero/hotel/pull/1#discussion_r173639020","pull_request_url":"https://api.github.com/repos/dbalatero/hotel/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/dbalatero/hotel/pulls/comments/173639020"},"html":{"href":"https://github.com/dbalatero/hotel/pull/1#discussion_r173639020"},"pull_request":{"href":"https://api.github.com/repos/dbalatero/hotel/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/dbalatero/hotel/pulls/1","id":174194227,"html_url":"https://github.com/dbalatero/hotel/pull/1","diff_url":"https://github.com/dbalatero/hotel/pull/1.diff","patch_url":"https://github.com/dbalatero/hotel/pull/1.patch","issue_url":"https://api.github.com/repos/dbalatero/hotel/issues/1","number":1,"state":"open","locked":false,"title":"mentor code review","user":{"login":"npeters5","id":23266268,"avatar_url":"https://avatars3.githubusercontent.com/u/23266268?v=4","gravatar_id":"","url":"https://api.github.com/users/npeters5","html_url":"https://github.com/npeters5","followers_url":"https://api.github.com/users/npeters5/followers","following_url":"https://api.github.com/users/npeters5/following{/other_user}","gists_url":"https://api.github.com/users/npeters5/gists{/gist_id}","starred_url":"https://api.github.com/users/npeters5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npeters5/subscriptions","organizations_url":"https://api.github.com/users/npeters5/orgs","repos_url":"https://api.github.com/users/npeters5/repos","events_url":"https://api.github.com/users/npeters5/events{/privacy}","received_events_url":"https://api.github.com/users/npeters5/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-10T23:03:28Z","updated_at":"2018-03-11T00:25:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ff150be967cd92d35e6dce2fb558d901d0308e0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/dbalatero/hotel/pulls/1/commits","review_comments_url":"https://api.github.com/repos/dbalatero/hotel/pulls/1/comments","review_comment_url":"https://api.github.com/repos/dbalatero/hotel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dbalatero/hotel/issues/1/comments","statuses_url":"https://api.github.com/repos/dbalatero/hotel/statuses/c91c32df5861fecff728197d4dfac5e33a121003","head":{"label":"npeters5:master","ref":"master","sha":"c91c32df5861fecff728197d4dfac5e33a121003","user":{"login":"npeters5","id":23266268,"avatar_url":"https://avatars3.githubusercontent.com/u/23266268?v=4","gravatar_id":"","url":"https://api.github.com/users/npeters5","html_url":"https://github.com/npeters5","followers_url":"https://api.github.com/users/npeters5/followers","following_url":"https://api.github.com/users/npeters5/following{/other_user}","gists_url":"https://api.github.com/users/npeters5/gists{/gist_id}","starred_url":"https://api.github.com/users/npeters5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npeters5/subscriptions","organizations_url":"https://api.github.com/users/npeters5/orgs","repos_url":"https://api.github.com/users/npeters5/repos","events_url":"https://api.github.com/users/npeters5/events{/privacy}","received_events_url":"https://api.github.com/users/npeters5/received_events","type":"User","site_admin":false},"repo":{"id":123983604,"name":"hotel","full_name":"npeters5/hotel","owner":{"login":"npeters5","id":23266268,"avatar_url":"https://avatars3.githubusercontent.com/u/23266268?v=4","gravatar_id":"","url":"https://api.github.com/users/npeters5","html_url":"https://github.com/npeters5","followers_url":"https://api.github.com/users/npeters5/followers","following_url":"https://api.github.com/users/npeters5/following{/other_user}","gists_url":"https://api.github.com/users/npeters5/gists{/gist_id}","starred_url":"https://api.github.com/users/npeters5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npeters5/subscriptions","organizations_url":"https://api.github.com/users/npeters5/orgs","repos_url":"https://api.github.com/users/npeters5/repos","events_url":"https://api.github.com/users/npeters5/events{/privacy}","received_events_url":"https://api.github.com/users/npeters5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/npeters5/hotel","description":null,"fork":true,"url":"https://api.github.com/repos/npeters5/hotel","forks_url":"https://api.github.com/repos/npeters5/hotel/forks","keys_url":"https://api.github.com/repos/npeters5/hotel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npeters5/hotel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npeters5/hotel/teams","hooks_url":"https://api.github.com/repos/npeters5/hotel/hooks","issue_events_url":"https://api.github.com/repos/npeters5/hotel/issues/events{/number}","events_url":"https://api.github.com/repos/npeters5/hotel/events","assignees_url":"https://api.github.com/repos/npeters5/hotel/assignees{/user}","branches_url":"https://api.github.com/repos/npeters5/hotel/branches{/branch}","tags_url":"https://api.github.com/repos/npeters5/hotel/tags","blobs_url":"https://api.github.com/repos/npeters5/hotel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npeters5/hotel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npeters5/hotel/git/refs{/sha}","trees_url":"https://api.github.com/repos/npeters5/hotel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npeters5/hotel/statuses/{sha}","languages_url":"https://api.github.com/repos/npeters5/hotel/languages","stargazers_url":"https://api.github.com/repos/npeters5/hotel/stargazers","contributors_url":"https://api.github.com/repos/npeters5/hotel/contributors","subscribers_url":"https://api.github.com/repos/npeters5/hotel/subscribers","subscription_url":"https://api.github.com/repos/npeters5/hotel/subscription","commits_url":"https://api.github.com/repos/npeters5/hotel/commits{/sha}","git_commits_url":"https://api.github.com/repos/npeters5/hotel/git/commits{/sha}","comments_url":"https://api.github.com/repos/npeters5/hotel/comments{/number}","issue_comment_url":"https://api.github.com/repos/npeters5/hotel/issues/comments{/number}","contents_url":"https://api.github.com/repos/npeters5/hotel/contents/{+path}","compare_url":"https://api.github.com/repos/npeters5/hotel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npeters5/hotel/merges","archive_url":"https://api.github.com/repos/npeters5/hotel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npeters5/hotel/downloads","issues_url":"https://api.github.com/repos/npeters5/hotel/issues{/number}","pulls_url":"https://api.github.com/repos/npeters5/hotel/pulls{/number}","milestones_url":"https://api.github.com/repos/npeters5/hotel/milestones{/number}","notifications_url":"https://api.github.com/repos/npeters5/hotel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npeters5/hotel/labels{/name}","releases_url":"https://api.github.com/repos/npeters5/hotel/releases{/id}","deployments_url":"https://api.github.com/repos/npeters5/hotel/deployments","created_at":"2018-03-05T21:52:56Z","updated_at":"2018-03-05T22:07:06Z","pushed_at":"2018-03-10T22:06:35Z","git_url":"git://github.com/npeters5/hotel.git","ssh_url":"git@github.com:npeters5/hotel.git","clone_url":"https://github.com/npeters5/hotel.git","svn_url":"https://github.com/npeters5/hotel","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dbalatero:master","ref":"master","sha":"a648e5b13d50e8552978e78b3d13ac95f21f9401","user":{"login":"dbalatero","id":59429,"avatar_url":"https://avatars3.githubusercontent.com/u/59429?v=4","gravatar_id":"","url":"https://api.github.com/users/dbalatero","html_url":"https://github.com/dbalatero","followers_url":"https://api.github.com/users/dbalatero/followers","following_url":"https://api.github.com/users/dbalatero/following{/other_user}","gists_url":"https://api.github.com/users/dbalatero/gists{/gist_id}","starred_url":"https://api.github.com/users/dbalatero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbalatero/subscriptions","organizations_url":"https://api.github.com/users/dbalatero/orgs","repos_url":"https://api.github.com/users/dbalatero/repos","events_url":"https://api.github.com/users/dbalatero/events{/privacy}","received_events_url":"https://api.github.com/users/dbalatero/received_events","type":"User","site_admin":false},"repo":{"id":124427603,"name":"hotel","full_name":"dbalatero/hotel","owner":{"login":"dbalatero","id":59429,"avatar_url":"https://avatars3.githubusercontent.com/u/59429?v=4","gravatar_id":"","url":"https://api.github.com/users/dbalatero","html_url":"https://github.com/dbalatero","followers_url":"https://api.github.com/users/dbalatero/followers","following_url":"https://api.github.com/users/dbalatero/following{/other_user}","gists_url":"https://api.github.com/users/dbalatero/gists{/gist_id}","starred_url":"https://api.github.com/users/dbalatero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbalatero/subscriptions","organizations_url":"https://api.github.com/users/dbalatero/orgs","repos_url":"https://api.github.com/users/dbalatero/repos","events_url":"https://api.github.com/users/dbalatero/events{/privacy}","received_events_url":"https://api.github.com/users/dbalatero/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dbalatero/hotel","description":null,"fork":true,"url":"https://api.github.com/repos/dbalatero/hotel","forks_url":"https://api.github.com/repos/dbalatero/hotel/forks","keys_url":"https://api.github.com/repos/dbalatero/hotel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dbalatero/hotel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dbalatero/hotel/teams","hooks_url":"https://api.github.com/repos/dbalatero/hotel/hooks","issue_events_url":"https://api.github.com/repos/dbalatero/hotel/issues/events{/number}","events_url":"https://api.github.com/repos/dbalatero/hotel/events","assignees_url":"https://api.github.com/repos/dbalatero/hotel/assignees{/user}","branches_url":"https://api.github.com/repos/dbalatero/hotel/branches{/branch}","tags_url":"https://api.github.com/repos/dbalatero/hotel/tags","blobs_url":"https://api.github.com/repos/dbalatero/hotel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dbalatero/hotel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dbalatero/hotel/git/refs{/sha}","trees_url":"https://api.github.com/repos/dbalatero/hotel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dbalatero/hotel/statuses/{sha}","languages_url":"https://api.github.com/repos/dbalatero/hotel/languages","stargazers_url":"https://api.github.com/repos/dbalatero/hotel/stargazers","contributors_url":"https://api.github.com/repos/dbalatero/hotel/contributors","subscribers_url":"https://api.github.com/repos/dbalatero/hotel/subscribers","subscription_url":"https://api.github.com/repos/dbalatero/hotel/subscription","commits_url":"https://api.github.com/repos/dbalatero/hotel/commits{/sha}","git_commits_url":"https://api.github.com/repos/dbalatero/hotel/git/commits{/sha}","comments_url":"https://api.github.com/repos/dbalatero/hotel/comments{/number}","issue_comment_url":"https://api.github.com/repos/dbalatero/hotel/issues/comments{/number}","contents_url":"https://api.github.com/repos/dbalatero/hotel/contents/{+path}","compare_url":"https://api.github.com/repos/dbalatero/hotel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dbalatero/hotel/merges","archive_url":"https://api.github.com/repos/dbalatero/hotel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dbalatero/hotel/downloads","issues_url":"https://api.github.com/repos/dbalatero/hotel/issues{/number}","pulls_url":"https://api.github.com/repos/dbalatero/hotel/pulls{/number}","milestones_url":"https://api.github.com/repos/dbalatero/hotel/milestones{/number}","notifications_url":"https://api.github.com/repos/dbalatero/hotel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dbalatero/hotel/labels{/name}","releases_url":"https://api.github.com/repos/dbalatero/hotel/releases{/id}","deployments_url":"https://api.github.com/repos/dbalatero/hotel/deployments","created_at":"2018-03-08T17:48:26Z","updated_at":"2017-08-31T22:21:35Z","pushed_at":"2018-03-10T23:03:29Z","git_url":"git://github.com/dbalatero/hotel.git","ssh_url":"git@github.com:dbalatero/hotel.git","clone_url":"https://github.com/dbalatero/hotel.git","svn_url":"https://github.com/dbalatero/hotel","homepage":null,"size":33,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dbalatero/hotel/pulls/1"},"html":{"href":"https://github.com/dbalatero/hotel/pull/1"},"issue":{"href":"https://api.github.com/repos/dbalatero/hotel/issues/1"},"comments":{"href":"https://api.github.com/repos/dbalatero/hotel/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/dbalatero/hotel/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/dbalatero/hotel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dbalatero/hotel/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/dbalatero/hotel/statuses/c91c32df5861fecff728197d4dfac5e33a121003"}},"author_association":"NONE"}}
{"actor":{"display_login":"dbalatero"}}