{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/comments/129140591","pull_request_review_id":51883505,"id":129140591,"diff_hunk":"@@ -21,4 +21,49 @@ def test_it_can_have_another_name\n \n     assert_equal \"Ali\", ali.name\n   end\n+\n+  def test_user_has_no_jokes_by_default\n+    sal = User.new(\"Sal\")\n+\n+    assert_equal [], sal.jokes\n+  end\n+\n+  def test_user_can_learn_joke\n+    sal = User.new(\"Sal\")\n+    joke = Joke.new({id: 1, question: \"Why did the strawberry cross the road?\", answer: \"Because his mother was in a jam.\"})\n+    sal.learn(joke)\n+\n+    assert_equal 1, sal.jokes.count\n+  end\n+\n+  def test_user_can_tell_joke\n+    sal = User.new(\"Sal\")\n+    ali = User.new(\"Ali\")\n+    joke = Joke.new({id: 1, question: \"Why did the strawberry cross the road?\", answer: \"Because his mother was in a jam.\"})\n+    sal.tell(ali, joke)\n+\n+    assert_equal 1, ali.jokes.count\n+  end","path":"test/user_test.rb","position":26,"original_position":26,"commit_id":"57665b6f64d24e3895b4994ebde9fcbc22d84e09","original_commit_id":"57665b6f64d24e3895b4994ebde9fcbc22d84e09","user":{"login":"AliSchlereth","id":17039358,"avatar_url":"https://avatars1.githubusercontent.com/u/17039358?v=4","gravatar_id":"","url":"https://api.github.com/users/AliSchlereth","html_url":"https://github.com/AliSchlereth","followers_url":"https://api.github.com/users/AliSchlereth/followers","following_url":"https://api.github.com/users/AliSchlereth/following{/other_user}","gists_url":"https://api.github.com/users/AliSchlereth/gists{/gist_id}","starred_url":"https://api.github.com/users/AliSchlereth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AliSchlereth/subscriptions","organizations_url":"https://api.github.com/users/AliSchlereth/orgs","repos_url":"https://api.github.com/users/AliSchlereth/repos","events_url":"https://api.github.com/users/AliSchlereth/events{/privacy}","received_events_url":"https://api.github.com/users/AliSchlereth/received_events","type":"User","site_admin":false},"body":"You could also assert that the last joke in ali.jokes is the previously passed joke.  \r\ni.e. assert_equal joke, ali.jokes.last   \r\nwhere joke is variable from line 42. ","created_at":"2017-07-24T20:10:50Z","updated_at":"2017-07-24T20:10:50Z","html_url":"https://github.com/turingschool-examples/open_mic/pull/21#discussion_r129140591","pull_request_url":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/comments/129140591"},"html":{"href":"https://github.com/turingschool-examples/open_mic/pull/21#discussion_r129140591"},"pull_request":{"href":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/21","id":131359612,"html_url":"https://github.com/turingschool-examples/open_mic/pull/21","diff_url":"https://github.com/turingschool-examples/open_mic/pull/21.diff","patch_url":"https://github.com/turingschool-examples/open_mic/pull/21.patch","issue_url":"https://api.github.com/repos/turingschool-examples/open_mic/issues/21","number":21,"state":"open","locked":false,"title":"Aaron Hursh Open_mic","user":{"login":"amhursh","id":28369772,"avatar_url":"https://avatars2.githubusercontent.com/u/28369772?v=4","gravatar_id":"","url":"https://api.github.com/users/amhursh","html_url":"https://github.com/amhursh","followers_url":"https://api.github.com/users/amhursh/followers","following_url":"https://api.github.com/users/amhursh/following{/other_user}","gists_url":"https://api.github.com/users/amhursh/gists{/gist_id}","starred_url":"https://api.github.com/users/amhursh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amhursh/subscriptions","organizations_url":"https://api.github.com/users/amhursh/orgs","repos_url":"https://api.github.com/users/amhursh/repos","events_url":"https://api.github.com/users/amhursh/events{/privacy}","received_events_url":"https://api.github.com/users/amhursh/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-19T16:02:57Z","updated_at":"2017-07-24T20:10:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff94b6b0e6e248592342514f54b968308da7432c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/21/commits","review_comments_url":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/21/comments","review_comment_url":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/turingschool-examples/open_mic/issues/21/comments","statuses_url":"https://api.github.com/repos/turingschool-examples/open_mic/statuses/57665b6f64d24e3895b4994ebde9fcbc22d84e09","head":{"label":"amhursh:master","ref":"master","sha":"57665b6f64d24e3895b4994ebde9fcbc22d84e09","user":{"login":"amhursh","id":28369772,"avatar_url":"https://avatars2.githubusercontent.com/u/28369772?v=4","gravatar_id":"","url":"https://api.github.com/users/amhursh","html_url":"https://github.com/amhursh","followers_url":"https://api.github.com/users/amhursh/followers","following_url":"https://api.github.com/users/amhursh/following{/other_user}","gists_url":"https://api.github.com/users/amhursh/gists{/gist_id}","starred_url":"https://api.github.com/users/amhursh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amhursh/subscriptions","organizations_url":"https://api.github.com/users/amhursh/orgs","repos_url":"https://api.github.com/users/amhursh/repos","events_url":"https://api.github.com/users/amhursh/events{/privacy}","received_events_url":"https://api.github.com/users/amhursh/received_events","type":"User","site_admin":false},"repo":{"id":97729499,"name":"open_mic","full_name":"amhursh/open_mic","owner":{"login":"amhursh","id":28369772,"avatar_url":"https://avatars2.githubusercontent.com/u/28369772?v=4","gravatar_id":"","url":"https://api.github.com/users/amhursh","html_url":"https://github.com/amhursh","followers_url":"https://api.github.com/users/amhursh/followers","following_url":"https://api.github.com/users/amhursh/following{/other_user}","gists_url":"https://api.github.com/users/amhursh/gists{/gist_id}","starred_url":"https://api.github.com/users/amhursh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amhursh/subscriptions","organizations_url":"https://api.github.com/users/amhursh/orgs","repos_url":"https://api.github.com/users/amhursh/repos","events_url":"https://api.github.com/users/amhursh/events{/privacy}","received_events_url":"https://api.github.com/users/amhursh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amhursh/open_mic","description":null,"fork":true,"url":"https://api.github.com/repos/amhursh/open_mic","forks_url":"https://api.github.com/repos/amhursh/open_mic/forks","keys_url":"https://api.github.com/repos/amhursh/open_mic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amhursh/open_mic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amhursh/open_mic/teams","hooks_url":"https://api.github.com/repos/amhursh/open_mic/hooks","issue_events_url":"https://api.github.com/repos/amhursh/open_mic/issues/events{/number}","events_url":"https://api.github.com/repos/amhursh/open_mic/events","assignees_url":"https://api.github.com/repos/amhursh/open_mic/assignees{/user}","branches_url":"https://api.github.com/repos/amhursh/open_mic/branches{/branch}","tags_url":"https://api.github.com/repos/amhursh/open_mic/tags","blobs_url":"https://api.github.com/repos/amhursh/open_mic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amhursh/open_mic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amhursh/open_mic/git/refs{/sha}","trees_url":"https://api.github.com/repos/amhursh/open_mic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amhursh/open_mic/statuses/{sha}","languages_url":"https://api.github.com/repos/amhursh/open_mic/languages","stargazers_url":"https://api.github.com/repos/amhursh/open_mic/stargazers","contributors_url":"https://api.github.com/repos/amhursh/open_mic/contributors","subscribers_url":"https://api.github.com/repos/amhursh/open_mic/subscribers","subscription_url":"https://api.github.com/repos/amhursh/open_mic/subscription","commits_url":"https://api.github.com/repos/amhursh/open_mic/commits{/sha}","git_commits_url":"https://api.github.com/repos/amhursh/open_mic/git/commits{/sha}","comments_url":"https://api.github.com/repos/amhursh/open_mic/comments{/number}","issue_comment_url":"https://api.github.com/repos/amhursh/open_mic/issues/comments{/number}","contents_url":"https://api.github.com/repos/amhursh/open_mic/contents/{+path}","compare_url":"https://api.github.com/repos/amhursh/open_mic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amhursh/open_mic/merges","archive_url":"https://api.github.com/repos/amhursh/open_mic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amhursh/open_mic/downloads","issues_url":"https://api.github.com/repos/amhursh/open_mic/issues{/number}","pulls_url":"https://api.github.com/repos/amhursh/open_mic/pulls{/number}","milestones_url":"https://api.github.com/repos/amhursh/open_mic/milestones{/number}","notifications_url":"https://api.github.com/repos/amhursh/open_mic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amhursh/open_mic/labels{/name}","releases_url":"https://api.github.com/repos/amhursh/open_mic/releases{/id}","deployments_url":"https://api.github.com/repos/amhursh/open_mic/deployments","created_at":"2017-07-19T14:59:53Z","updated_at":"2017-07-19T14:59:55Z","pushed_at":"2017-07-19T16:01:29Z","git_url":"git://github.com/amhursh/open_mic.git","ssh_url":"git@github.com:amhursh/open_mic.git","clone_url":"https://github.com/amhursh/open_mic.git","svn_url":"https://github.com/amhursh/open_mic","homepage":null,"size":9,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"turingschool-examples:master","ref":"master","sha":"ebf2b925ff9deb408658ce7cea0ed1754973650a","user":{"login":"turingschool-examples","id":8518346,"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":97675891,"name":"open_mic","full_name":"turingschool-examples/open_mic","owner":{"login":"turingschool-examples","id":8518346,"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/open_mic","description":null,"fork":true,"url":"https://api.github.com/repos/turingschool-examples/open_mic","forks_url":"https://api.github.com/repos/turingschool-examples/open_mic/forks","keys_url":"https://api.github.com/repos/turingschool-examples/open_mic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool-examples/open_mic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool-examples/open_mic/teams","hooks_url":"https://api.github.com/repos/turingschool-examples/open_mic/hooks","issue_events_url":"https://api.github.com/repos/turingschool-examples/open_mic/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool-examples/open_mic/events","assignees_url":"https://api.github.com/repos/turingschool-examples/open_mic/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool-examples/open_mic/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool-examples/open_mic/tags","blobs_url":"https://api.github.com/repos/turingschool-examples/open_mic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool-examples/open_mic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool-examples/open_mic/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool-examples/open_mic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool-examples/open_mic/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool-examples/open_mic/languages","stargazers_url":"https://api.github.com/repos/turingschool-examples/open_mic/stargazers","contributors_url":"https://api.github.com/repos/turingschool-examples/open_mic/contributors","subscribers_url":"https://api.github.com/repos/turingschool-examples/open_mic/subscribers","subscription_url":"https://api.github.com/repos/turingschool-examples/open_mic/subscription","commits_url":"https://api.github.com/repos/turingschool-examples/open_mic/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool-examples/open_mic/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool-examples/open_mic/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool-examples/open_mic/issues/comments{/number}","contents_url":"https://api.github.com/repos/turingschool-examples/open_mic/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool-examples/open_mic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool-examples/open_mic/merges","archive_url":"https://api.github.com/repos/turingschool-examples/open_mic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool-examples/open_mic/downloads","issues_url":"https://api.github.com/repos/turingschool-examples/open_mic/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool-examples/open_mic/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool-examples/open_mic/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool-examples/open_mic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool-examples/open_mic/labels{/name}","releases_url":"https://api.github.com/repos/turingschool-examples/open_mic/releases{/id}","deployments_url":"https://api.github.com/repos/turingschool-examples/open_mic/deployments","created_at":"2017-07-19T05:24:29Z","updated_at":"2017-07-19T13:11:49Z","pushed_at":"2017-07-20T22:00:37Z","git_url":"git://github.com/turingschool-examples/open_mic.git","ssh_url":"git@github.com:turingschool-examples/open_mic.git","clone_url":"https://github.com/turingschool-examples/open_mic.git","svn_url":"https://github.com/turingschool-examples/open_mic","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":19,"forks":22,"open_issues":19,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/21"},"html":{"href":"https://github.com/turingschool-examples/open_mic/pull/21"},"issue":{"href":"https://api.github.com/repos/turingschool-examples/open_mic/issues/21"},"comments":{"href":"https://api.github.com/repos/turingschool-examples/open_mic/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/turingschool-examples/open_mic/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool-examples/open_mic/statuses/57665b6f64d24e3895b4994ebde9fcbc22d84e09"}}}}
{"actor":{"display_login":"AliSchlereth"}}