{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/comments/139986444","pull_request_review_id":63991231,"id":139986444,"diff_hunk":"@@ -0,0 +1,56 @@\n+require 'rails_helper'\n+\n+describe \"User visits a job page\" do\n+  scenario \"a user can see tags associated with a job\" do\n+    company = Company.create!(name: \"ESPN\")\n+\n+    job = company.jobs.create!(title: \"Developer\", level_of_interest: 70, city: \"Denver\")\n+\n+    tag = Tag.create(text: \"Cool location\")\n+    tag2 = Tag.create(text: \"Good benefits\")\n+\n+    JobTag.create(tag: tag, job: job)\n+    JobTag.create(tag: tag2, job: job)\n+\n+    visit company_job_path(company, job)\n+\n+    expect(page).to have_content(tag.text)\n+    expect(page).to have_content(tag2.text)\n+  end\n+  scenario \"a user can see the count of jobs with a particular tag\" do\n+    company = Company.create!(name: \"ESPN\")\n+\n+    job = company.jobs.create!(title: \"Developer\", level_of_interest: 70, city: \"Denver\")\n+    job2 = company.jobs.create!(title: \"Database Janitor\", level_of_interest: 70, city: \"Denver\")\n+\n+    tag = Tag.create(text: \"Cool location\")\n+    tag2 = Tag.create(text: \"Good benefits\")\n+\n+    JobTag.create(tag: tag, job: job)\n+    JobTag.create(tag: tag, job: job)\n+    JobTag.create(tag: tag2, job: job2)\n+\n+    visit company_job_path(company, job)\n+\n+    expect(page).to have_content(\"#{tag.text} - 2\")\n+  end\n+  scenario \"a user can see the average salary for jobs with a particular tag\" do\n+    company = Company.create!(name: \"ESPN\")\n+\n+    job = company.jobs.create!(title: \"Developer\", level_of_interest: 70, city: \"Denver\", salary: 10000)\n+    job2 = company.jobs.create!(title: \"Fortran Developer\", level_of_interest: 70, city: \"Denver\", salary: 12000)\n+    job3 = company.jobs.create!(title: \"Fortran Developer\", level_of_interest: 70, city: \"Denver\", salary: 9000)\n+\n+    tag = Tag.create(text: 'coolio')\n+    tag2 = Tag.create(text: 'coolio')\n+    tag3 = Tag.create(text: 'coolio')","path":"spec/features/jobs/user_can_see_the_tags_associated_with_a_job_spec.rb","position":46,"original_position":46,"commit_id":"7a756cb8110d51f212163b30b85259c4d05fa001","original_commit_id":"7a756cb8110d51f212163b30b85259c4d05fa001","user":{"login":"s-espinosa","id":10855116,"avatar_url":"https://avatars1.githubusercontent.com/u/10855116?v=4","gravatar_id":"","url":"https://api.github.com/users/s-espinosa","html_url":"https://github.com/s-espinosa","followers_url":"https://api.github.com/users/s-espinosa/followers","following_url":"https://api.github.com/users/s-espinosa/following{/other_user}","gists_url":"https://api.github.com/users/s-espinosa/gists{/gist_id}","starred_url":"https://api.github.com/users/s-espinosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-espinosa/subscriptions","organizations_url":"https://api.github.com/users/s-espinosa/orgs","repos_url":"https://api.github.com/users/s-espinosa/repos","events_url":"https://api.github.com/users/s-espinosa/events{/privacy}","received_events_url":"https://api.github.com/users/s-espinosa/received_events","type":"User","site_admin":false},"body":"Tags 2 and 3 don't seem to be associated with any jobs. In a model test for the `average_salary_for_jobs_with_tag` would like to see a test that included something where you had one tag with multiple jobs, and one tag with just one job and ensure that both cases returned a correct average.","created_at":"2017-09-20T14:30:43Z","updated_at":"2017-09-20T14:35:55Z","html_url":"https://github.com/turingschool-examples/job-tracker-base/pull/43#discussion_r139986444","pull_request_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/43","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/comments/139986444"},"html":{"href":"https://github.com/turingschool-examples/job-tracker-base/pull/43#discussion_r139986444"},"pull_request":{"href":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/43","id":141996578,"html_url":"https://github.com/turingschool-examples/job-tracker-base/pull/43","diff_url":"https://github.com/turingschool-examples/job-tracker-base/pull/43.diff","patch_url":"https://github.com/turingschool-examples/job-tracker-base/pull/43.patch","issue_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/issues/43","number":43,"state":"open","locked":false,"title":"BEE 1706 MOD 2 Brandon Stewart - Refactor.","user":{"login":"boveus","id":20469703,"avatar_url":"https://avatars2.githubusercontent.com/u/20469703?v=4","gravatar_id":"","url":"https://api.github.com/users/boveus","html_url":"https://github.com/boveus","followers_url":"https://api.github.com/users/boveus/followers","following_url":"https://api.github.com/users/boveus/following{/other_user}","gists_url":"https://api.github.com/users/boveus/gists{/gist_id}","starred_url":"https://api.github.com/users/boveus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boveus/subscriptions","organizations_url":"https://api.github.com/users/boveus/orgs","repos_url":"https://api.github.com/users/boveus/repos","events_url":"https://api.github.com/users/boveus/events{/privacy}","received_events_url":"https://api.github.com/users/boveus/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-20T02:18:58Z","updated_at":"2017-09-20T14:35:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b6326d189c87ec2f0e02b7b35ec056ec8c57d95","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/43/commits","review_comments_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/43/comments","review_comment_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/comments{/number}","comments_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/issues/43/comments","statuses_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/statuses/7a756cb8110d51f212163b30b85259c4d05fa001","head":{"label":"boveus:master","ref":"master","sha":"7a756cb8110d51f212163b30b85259c4d05fa001","user":{"login":"boveus","id":20469703,"avatar_url":"https://avatars2.githubusercontent.com/u/20469703?v=4","gravatar_id":"","url":"https://api.github.com/users/boveus","html_url":"https://github.com/boveus","followers_url":"https://api.github.com/users/boveus/followers","following_url":"https://api.github.com/users/boveus/following{/other_user}","gists_url":"https://api.github.com/users/boveus/gists{/gist_id}","starred_url":"https://api.github.com/users/boveus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boveus/subscriptions","organizations_url":"https://api.github.com/users/boveus/orgs","repos_url":"https://api.github.com/users/boveus/repos","events_url":"https://api.github.com/users/boveus/events{/privacy}","received_events_url":"https://api.github.com/users/boveus/received_events","type":"User","site_admin":false},"repo":{"id":104090213,"name":"job-tracker-base","full_name":"boveus/job-tracker-base","owner":{"login":"boveus","id":20469703,"avatar_url":"https://avatars2.githubusercontent.com/u/20469703?v=4","gravatar_id":"","url":"https://api.github.com/users/boveus","html_url":"https://github.com/boveus","followers_url":"https://api.github.com/users/boveus/followers","following_url":"https://api.github.com/users/boveus/following{/other_user}","gists_url":"https://api.github.com/users/boveus/gists{/gist_id}","starred_url":"https://api.github.com/users/boveus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boveus/subscriptions","organizations_url":"https://api.github.com/users/boveus/orgs","repos_url":"https://api.github.com/users/boveus/repos","events_url":"https://api.github.com/users/boveus/events{/privacy}","received_events_url":"https://api.github.com/users/boveus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boveus/job-tracker-base","description":null,"fork":true,"url":"https://api.github.com/repos/boveus/job-tracker-base","forks_url":"https://api.github.com/repos/boveus/job-tracker-base/forks","keys_url":"https://api.github.com/repos/boveus/job-tracker-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boveus/job-tracker-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boveus/job-tracker-base/teams","hooks_url":"https://api.github.com/repos/boveus/job-tracker-base/hooks","issue_events_url":"https://api.github.com/repos/boveus/job-tracker-base/issues/events{/number}","events_url":"https://api.github.com/repos/boveus/job-tracker-base/events","assignees_url":"https://api.github.com/repos/boveus/job-tracker-base/assignees{/user}","branches_url":"https://api.github.com/repos/boveus/job-tracker-base/branches{/branch}","tags_url":"https://api.github.com/repos/boveus/job-tracker-base/tags","blobs_url":"https://api.github.com/repos/boveus/job-tracker-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boveus/job-tracker-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boveus/job-tracker-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/boveus/job-tracker-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boveus/job-tracker-base/statuses/{sha}","languages_url":"https://api.github.com/repos/boveus/job-tracker-base/languages","stargazers_url":"https://api.github.com/repos/boveus/job-tracker-base/stargazers","contributors_url":"https://api.github.com/repos/boveus/job-tracker-base/contributors","subscribers_url":"https://api.github.com/repos/boveus/job-tracker-base/subscribers","subscription_url":"https://api.github.com/repos/boveus/job-tracker-base/subscription","commits_url":"https://api.github.com/repos/boveus/job-tracker-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/boveus/job-tracker-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/boveus/job-tracker-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/boveus/job-tracker-base/issues/comments{/number}","contents_url":"https://api.github.com/repos/boveus/job-tracker-base/contents/{+path}","compare_url":"https://api.github.com/repos/boveus/job-tracker-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boveus/job-tracker-base/merges","archive_url":"https://api.github.com/repos/boveus/job-tracker-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boveus/job-tracker-base/downloads","issues_url":"https://api.github.com/repos/boveus/job-tracker-base/issues{/number}","pulls_url":"https://api.github.com/repos/boveus/job-tracker-base/pulls{/number}","milestones_url":"https://api.github.com/repos/boveus/job-tracker-base/milestones{/number}","notifications_url":"https://api.github.com/repos/boveus/job-tracker-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boveus/job-tracker-base/labels{/name}","releases_url":"https://api.github.com/repos/boveus/job-tracker-base/releases{/id}","deployments_url":"https://api.github.com/repos/boveus/job-tracker-base/deployments","created_at":"2017-09-19T15:04:32Z","updated_at":"2017-09-19T15:04:33Z","pushed_at":"2017-09-20T02:18:25Z","git_url":"git://github.com/boveus/job-tracker-base.git","ssh_url":"git@github.com:boveus/job-tracker-base.git","clone_url":"https://github.com/boveus/job-tracker-base.git","svn_url":"https://github.com/boveus/job-tracker-base","homepage":null,"size":65,"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":"c8a195009c2f56e61be1c97966d8b26e13eba9ab","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":98932995,"name":"job-tracker-base","full_name":"turingschool-examples/job-tracker-base","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/job-tracker-base","description":null,"fork":false,"url":"https://api.github.com/repos/turingschool-examples/job-tracker-base","forks_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/forks","keys_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/teams","hooks_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/hooks","issue_events_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/events","assignees_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/tags","blobs_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/languages","stargazers_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/stargazers","contributors_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/contributors","subscribers_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/subscribers","subscription_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/subscription","commits_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/issues/comments{/number}","contents_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/merges","archive_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/downloads","issues_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/labels{/name}","releases_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/releases{/id}","deployments_url":"https://api.github.com/repos/turingschool-examples/job-tracker-base/deployments","created_at":"2017-07-31T21:51:50Z","updated_at":"2017-07-31T21:52:01Z","pushed_at":"2017-09-20T02:18:58Z","git_url":"git://github.com/turingschool-examples/job-tracker-base.git","ssh_url":"git@github.com:turingschool-examples/job-tracker-base.git","clone_url":"https://github.com/turingschool-examples/job-tracker-base.git","svn_url":"https://github.com/turingschool-examples/job-tracker-base","homepage":null,"size":54,"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":38,"mirror_url":null,"open_issues_count":2,"forks":38,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/43"},"html":{"href":"https://github.com/turingschool-examples/job-tracker-base/pull/43"},"issue":{"href":"https://api.github.com/repos/turingschool-examples/job-tracker-base/issues/43"},"comments":{"href":"https://api.github.com/repos/turingschool-examples/job-tracker-base/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/turingschool-examples/job-tracker-base/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool-examples/job-tracker-base/statuses/7a756cb8110d51f212163b30b85259c4d05fa001"}},"author_association":"NONE"}}
{"actor":{"display_login":"s-espinosa"}}