{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/comments/214054732","pull_request_review_id":151024920,"id":214054732,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDA1NDczMg==","diff_hunk":"@@ -0,0 +1,62 @@\n+require 'minitest/autorun'\n+require 'minitest/pride'\n+require './lib/room'\n+require './lib/house'\n+\n+class HouseTest < MiniTest::Test\n+  def test_house_class_exists\n+    house = House.new(\"$400000\", \"123 sugar lane\")\n+    assert_instance_of House, house\n+  end\n+\n+  def test_price_and_address_method_takes_argument\n+    house = House.new(\"$400000\", \"123 sugar lane\")\n+    assert_equal \"$400000\", house.price\n+    assert_equal \"123 sugar lane\", house.address\n+  end\n+\n+  def test_rooms_start_with_empty_array\n+    house = House.new(\"$400000\", \"123 sugar lane\")\n+    assert_equal [], house.rooms\n+  end\n+\n+  def test_new_rooms_print_into_empty_array\n+    house = House.new(\"$400000\", \"123 sugar lane\")\n+    room = Room.new(:bedroom, 10, 13)\n+    room_1 = Room.new(:bedroom, 10, 13)\n+    room_2 = Room.new(:bedroom, 11, 15)\n+\n+    assert_equal [room_1], house.add_room(room_1)\n+    assert_equal [room_1, room_2], house.add_room(room_2)\n+    #Conscious SALAD!!!\n+  end\n+\n+  def test_additional_rooms\n+    house = House.new(\"$400000\", \"123 sugar lane\")\n+    room = Room.new(:bedroom, 10, 13)\n+    room_1 = Room.new(:bedroom, 10, 13)\n+    room_2 = Room.new(:bedroom, 11, 15)\n+    room_3 = Room.new(:living_room, 25, 15)\n+    room_4 = Room.new(:basement, 30, 41)\n+\n+    assert_equal [room_1], house.add_room(room_1)\n+    assert_equal [room_1, room_2], house.add_room(room_2)\n+    assert_equal [room_1, room_2, room_3], house.add_room(room_3)\n+    assert_equal [room_1, room_2, room_3, room_4], house.add_room(room_4)","path":"house_test.rb","position":45,"original_position":45,"commit_id":"9f46cb6d960c338fc5718eb53b4c2d7a439760bd","original_commit_id":"9f46cb6d960c338fc5718eb53b4c2d7a439760bd","user":{"login":"BrianZanti","id":8962411,"node_id":"MDQ6VXNlcjg5NjI0MTE=","avatar_url":"https://avatars1.githubusercontent.com/u/8962411?v=4","gravatar_id":"","url":"https://api.github.com/users/BrianZanti","html_url":"https://github.com/BrianZanti","followers_url":"https://api.github.com/users/BrianZanti/followers","following_url":"https://api.github.com/users/BrianZanti/following{/other_user}","gists_url":"https://api.github.com/users/BrianZanti/gists{/gist_id}","starred_url":"https://api.github.com/users/BrianZanti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrianZanti/subscriptions","organizations_url":"https://api.github.com/users/BrianZanti/orgs","repos_url":"https://api.github.com/users/BrianZanti/repos","events_url":"https://api.github.com/users/BrianZanti/events{/privacy}","received_events_url":"https://api.github.com/users/BrianZanti/received_events","type":"User","site_admin":false},"body":"At some point, you also need to assert that `house.rooms` returns the correct array. It's just like when we did the Potluck challenge, when we do `add_dish` it changed our dishes array","created_at":"2018-08-30T14:33:12Z","updated_at":"2018-08-30T14:33:12Z","html_url":"https://github.com/turingschool-examples/real_estate/pull/5#discussion_r214054732","pull_request_url":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/5","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/comments/214054732"},"html":{"href":"https://github.com/turingschool-examples/real_estate/pull/5#discussion_r214054732"},"pull_request":{"href":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/5","id":211867526,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExODY3NTI2","html_url":"https://github.com/turingschool-examples/real_estate/pull/5","diff_url":"https://github.com/turingschool-examples/real_estate/pull/5.diff","patch_url":"https://github.com/turingschool-examples/real_estate/pull/5.patch","issue_url":"https://api.github.com/repos/turingschool-examples/real_estate/issues/5","number":5,"state":"closed","locked":false,"title":"Add files via upload","user":{"login":"abroberts5","id":40776966,"node_id":"MDQ6VXNlcjQwNzc2OTY2","avatar_url":"https://avatars2.githubusercontent.com/u/40776966?v=4","gravatar_id":"","url":"https://api.github.com/users/abroberts5","html_url":"https://github.com/abroberts5","followers_url":"https://api.github.com/users/abroberts5/followers","following_url":"https://api.github.com/users/abroberts5/following{/other_user}","gists_url":"https://api.github.com/users/abroberts5/gists{/gist_id}","starred_url":"https://api.github.com/users/abroberts5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abroberts5/subscriptions","organizations_url":"https://api.github.com/users/abroberts5/orgs","repos_url":"https://api.github.com/users/abroberts5/repos","events_url":"https://api.github.com/users/abroberts5/events{/privacy}","received_events_url":"https://api.github.com/users/abroberts5/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-29T19:51:32Z","updated_at":"2018-08-30T14:33:12Z","closed_at":"2018-08-30T14:29:56Z","merged_at":null,"merge_commit_sha":"a1f6611402aba01c1a391b5f766d6196f72a67af","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/5/commits","review_comments_url":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/5/comments","review_comment_url":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/turingschool-examples/real_estate/issues/5/comments","statuses_url":"https://api.github.com/repos/turingschool-examples/real_estate/statuses/9f46cb6d960c338fc5718eb53b4c2d7a439760bd","head":{"label":"abroberts5:master","ref":"master","sha":"9f46cb6d960c338fc5718eb53b4c2d7a439760bd","user":{"login":"abroberts5","id":40776966,"node_id":"MDQ6VXNlcjQwNzc2OTY2","avatar_url":"https://avatars2.githubusercontent.com/u/40776966?v=4","gravatar_id":"","url":"https://api.github.com/users/abroberts5","html_url":"https://github.com/abroberts5","followers_url":"https://api.github.com/users/abroberts5/followers","following_url":"https://api.github.com/users/abroberts5/following{/other_user}","gists_url":"https://api.github.com/users/abroberts5/gists{/gist_id}","starred_url":"https://api.github.com/users/abroberts5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abroberts5/subscriptions","organizations_url":"https://api.github.com/users/abroberts5/orgs","repos_url":"https://api.github.com/users/abroberts5/repos","events_url":"https://api.github.com/users/abroberts5/events{/privacy}","received_events_url":"https://api.github.com/users/abroberts5/received_events","type":"User","site_admin":false},"repo":{"id":146645424,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY2NDU0MjQ=","name":"real_estate","full_name":"abroberts5/real_estate","owner":{"login":"abroberts5","id":40776966,"node_id":"MDQ6VXNlcjQwNzc2OTY2","avatar_url":"https://avatars2.githubusercontent.com/u/40776966?v=4","gravatar_id":"","url":"https://api.github.com/users/abroberts5","html_url":"https://github.com/abroberts5","followers_url":"https://api.github.com/users/abroberts5/followers","following_url":"https://api.github.com/users/abroberts5/following{/other_user}","gists_url":"https://api.github.com/users/abroberts5/gists{/gist_id}","starred_url":"https://api.github.com/users/abroberts5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abroberts5/subscriptions","organizations_url":"https://api.github.com/users/abroberts5/orgs","repos_url":"https://api.github.com/users/abroberts5/repos","events_url":"https://api.github.com/users/abroberts5/events{/privacy}","received_events_url":"https://api.github.com/users/abroberts5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abroberts5/real_estate","description":null,"fork":true,"url":"https://api.github.com/repos/abroberts5/real_estate","forks_url":"https://api.github.com/repos/abroberts5/real_estate/forks","keys_url":"https://api.github.com/repos/abroberts5/real_estate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abroberts5/real_estate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abroberts5/real_estate/teams","hooks_url":"https://api.github.com/repos/abroberts5/real_estate/hooks","issue_events_url":"https://api.github.com/repos/abroberts5/real_estate/issues/events{/number}","events_url":"https://api.github.com/repos/abroberts5/real_estate/events","assignees_url":"https://api.github.com/repos/abroberts5/real_estate/assignees{/user}","branches_url":"https://api.github.com/repos/abroberts5/real_estate/branches{/branch}","tags_url":"https://api.github.com/repos/abroberts5/real_estate/tags","blobs_url":"https://api.github.com/repos/abroberts5/real_estate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abroberts5/real_estate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abroberts5/real_estate/git/refs{/sha}","trees_url":"https://api.github.com/repos/abroberts5/real_estate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abroberts5/real_estate/statuses/{sha}","languages_url":"https://api.github.com/repos/abroberts5/real_estate/languages","stargazers_url":"https://api.github.com/repos/abroberts5/real_estate/stargazers","contributors_url":"https://api.github.com/repos/abroberts5/real_estate/contributors","subscribers_url":"https://api.github.com/repos/abroberts5/real_estate/subscribers","subscription_url":"https://api.github.com/repos/abroberts5/real_estate/subscription","commits_url":"https://api.github.com/repos/abroberts5/real_estate/commits{/sha}","git_commits_url":"https://api.github.com/repos/abroberts5/real_estate/git/commits{/sha}","comments_url":"https://api.github.com/repos/abroberts5/real_estate/comments{/number}","issue_comment_url":"https://api.github.com/repos/abroberts5/real_estate/issues/comments{/number}","contents_url":"https://api.github.com/repos/abroberts5/real_estate/contents/{+path}","compare_url":"https://api.github.com/repos/abroberts5/real_estate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abroberts5/real_estate/merges","archive_url":"https://api.github.com/repos/abroberts5/real_estate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abroberts5/real_estate/downloads","issues_url":"https://api.github.com/repos/abroberts5/real_estate/issues{/number}","pulls_url":"https://api.github.com/repos/abroberts5/real_estate/pulls{/number}","milestones_url":"https://api.github.com/repos/abroberts5/real_estate/milestones{/number}","notifications_url":"https://api.github.com/repos/abroberts5/real_estate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abroberts5/real_estate/labels{/name}","releases_url":"https://api.github.com/repos/abroberts5/real_estate/releases{/id}","deployments_url":"https://api.github.com/repos/abroberts5/real_estate/deployments","created_at":"2018-08-29T19:00:48Z","updated_at":"2018-08-29T20:58:05Z","pushed_at":"2018-08-29T20:58:04Z","git_url":"git://github.com/abroberts5/real_estate.git","ssh_url":"git@github.com:abroberts5/real_estate.git","clone_url":"https://github.com/abroberts5/real_estate.git","svn_url":"https://github.com/abroberts5/real_estate","homepage":null,"size":5,"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":"turingschool-examples:master","ref":"master","sha":"5fbf8cdccb12b8561b63a4b96d701f72defb851b","user":{"login":"turingschool-examples","id":8518346,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1MTgzNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/8518346?v=4","gravatar_id":"","url":"https://api.github.com/users/turingschool-examples","html_url":"https://github.com/turingschool-examples","followers_url":"https://api.github.com/users/turingschool-examples/followers","following_url":"https://api.github.com/users/turingschool-examples/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-examples/subscriptions","organizations_url":"https://api.github.com/users/turingschool-examples/orgs","repos_url":"https://api.github.com/users/turingschool-examples/repos","events_url":"https://api.github.com/users/turingschool-examples/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-examples/received_events","type":"Organization","site_admin":false},"repo":{"id":146644722,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY2NDQ3MjI=","name":"real_estate","full_name":"turingschool-examples/real_estate","owner":{"login":"turingschool-examples","id":8518346,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1MTgzNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/8518346?v=4","gravatar_id":"","url":"https://api.github.com/users/turingschool-examples","html_url":"https://github.com/turingschool-examples","followers_url":"https://api.github.com/users/turingschool-examples/followers","following_url":"https://api.github.com/users/turingschool-examples/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-examples/subscriptions","organizations_url":"https://api.github.com/users/turingschool-examples/orgs","repos_url":"https://api.github.com/users/turingschool-examples/repos","events_url":"https://api.github.com/users/turingschool-examples/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-examples/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/turingschool-examples/real_estate","description":null,"fork":false,"url":"https://api.github.com/repos/turingschool-examples/real_estate","forks_url":"https://api.github.com/repos/turingschool-examples/real_estate/forks","keys_url":"https://api.github.com/repos/turingschool-examples/real_estate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool-examples/real_estate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool-examples/real_estate/teams","hooks_url":"https://api.github.com/repos/turingschool-examples/real_estate/hooks","issue_events_url":"https://api.github.com/repos/turingschool-examples/real_estate/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool-examples/real_estate/events","assignees_url":"https://api.github.com/repos/turingschool-examples/real_estate/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool-examples/real_estate/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool-examples/real_estate/tags","blobs_url":"https://api.github.com/repos/turingschool-examples/real_estate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool-examples/real_estate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool-examples/real_estate/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool-examples/real_estate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool-examples/real_estate/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool-examples/real_estate/languages","stargazers_url":"https://api.github.com/repos/turingschool-examples/real_estate/stargazers","contributors_url":"https://api.github.com/repos/turingschool-examples/real_estate/contributors","subscribers_url":"https://api.github.com/repos/turingschool-examples/real_estate/subscribers","subscription_url":"https://api.github.com/repos/turingschool-examples/real_estate/subscription","commits_url":"https://api.github.com/repos/turingschool-examples/real_estate/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool-examples/real_estate/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool-examples/real_estate/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool-examples/real_estate/issues/comments{/number}","contents_url":"https://api.github.com/repos/turingschool-examples/real_estate/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool-examples/real_estate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool-examples/real_estate/merges","archive_url":"https://api.github.com/repos/turingschool-examples/real_estate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool-examples/real_estate/downloads","issues_url":"https://api.github.com/repos/turingschool-examples/real_estate/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool-examples/real_estate/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool-examples/real_estate/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool-examples/real_estate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool-examples/real_estate/labels{/name}","releases_url":"https://api.github.com/repos/turingschool-examples/real_estate/releases{/id}","deployments_url":"https://api.github.com/repos/turingschool-examples/real_estate/deployments","created_at":"2018-08-29T18:54:27Z","updated_at":"2018-08-29T18:55:39Z","pushed_at":"2018-08-29T21:42:34Z","git_url":"git://github.com/turingschool-examples/real_estate.git","ssh_url":"git@github.com:turingschool-examples/real_estate.git","clone_url":"https://github.com/turingschool-examples/real_estate.git","svn_url":"https://github.com/turingschool-examples/real_estate","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":30,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/5"},"html":{"href":"https://github.com/turingschool-examples/real_estate/pull/5"},"issue":{"href":"https://api.github.com/repos/turingschool-examples/real_estate/issues/5"},"comments":{"href":"https://api.github.com/repos/turingschool-examples/real_estate/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/turingschool-examples/real_estate/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool-examples/real_estate/statuses/9f46cb6d960c338fc5718eb53b4c2d7a439760bd"}},"author_association":"NONE"}}
{"actor":{"display_login":"BrianZanti"}}