{"action":"created","comment":{"url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/comments/32904352","id":32904352,"diff_hunk":"@@ -0,0 +1,81 @@\n+require 'rails_helper'\n+\n+RSpec.describe Interview, type: :model do\n+  before(:each) do \n+    @company = Company.create(name: \"Company 1\")\n+    @job = Job.create(title: \"Title 1\",\n+                      job_description: \"Description\",\n+                      company_id: @company.id)\n+    @user = User.create(uid: \"123455\", name: \"Paul Grever\", email: \"paulgrever@gmail.com\", image: \"https://avatars.githubusercontent.com/u/3664281?v=3\")\n+    @interview = @job.interviews.create(title: \"Interview 1\",\n+                                        number: 1,\n+                                        interview_type: \"phone\",\n+                                        details: \"Met with John Smith on the phone, he was nice\",\n+                                        date: \"2014-09-20\",\n+                                        time_between: \"2 weeks\",\n+                                        questions: \"Question 1: How was your day?\",\n+                                        interviewer_name: \"Paul Grever\",\n+                                        interviewer_email: \"paulgrever@gmail.com\",\n+                                        interviewer_phone: \"608-239-2471\", \n+                                        user_id: @user.id)\n+  end\n+\n+  it \"is valid with all fields\" do\n+    expect(@interview).to be_valid\n+  end\n+\n+  it \"has a relationship with jobs\" do\n+    expect(@interview.job.title).to eq(\"Title 1\")\n+  end\n+\n+  it \"has a relationship with users\" do\n+    expect(@interview.user.name).to eq(\"Paul Grever\")\n+  end\n+\n+  it \"is invalid without a job id \" do\n+    interview = Interview.new(title: \"Interview 1\",\n+                              number: 1,\n+                              interview_type: \"phone\",\n+                              details: \"Met with John Smith on the phone, he was nice\",\n+                              date: \"2014-09-20\",\n+                              time_between: \"2 weeks\",\n+                              questions: \"Question 1: How was your day?\",\n+                              interviewer_name: \"Paul Grever\",\n+                              interviewer_email: \"paulgrever@gmail.com\",\n+                              interviewer_phone: \"608-239-2471\", \n+                              user_id: @user.id)\n+    expect(interview).to_not be_valid\n+  end\n+\n+  it \"is invalid without a user_id \" do\n+    interview = Interview.new(title: \"Interview 1\",\n+                              job_id: @job.id,\n+                              number: 1,\n+                              interview_type: \"phone\",\n+                              details: \"Met with John Smith on the phone, he was nice\",\n+                              date: \"2014-09-20\",\n+                              time_between: \"2 weeks\",\n+                              questions: \"Question 1: How was your day?\",\n+                              interviewer_name: \"Paul Grever\",\n+                              interviewer_email: \"paulgrever@gmail.com\",\n+                              interviewer_phone: \"608-239-2471\", \n+                              user_id: nil)\n+    expect(interview).to_not be_valid\n+  end\n+\n+  it \"is invalid without a title\" do\n+    interview = Interview.new(title: nil,\n+                              job_id: @job.id,\n+                              number: 1,\n+                              interview_type: \"phone\",\n+                              details: \"Met with John Smith on the phone, he was nice\",","path":"spec/models/interview_spec.rb","position":71,"original_position":71,"commit_id":"69a05f4e6000dcc4c3dedf434a6d534aa47715fe","original_commit_id":"69a05f4e6000dcc4c3dedf434a6d534aa47715fe","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. [87/80]","created_at":"2015-06-22T04:07:37Z","updated_at":"2015-06-22T04:07:37Z","html_url":"https://github.com/paulgrever/glass-basement/pull/16#discussion_r32904352","pull_request_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/comments/32904352"},"html":{"href":"https://github.com/paulgrever/glass-basement/pull/16#discussion_r32904352"},"pull_request":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/16","id":38198903,"html_url":"https://github.com/paulgrever/glass-basement/pull/16","diff_url":"https://github.com/paulgrever/glass-basement/pull/16.diff","patch_url":"https://github.com/paulgrever/glass-basement/pull/16.patch","issue_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/16","number":16,"state":"open","locked":false,"title":"Interview","user":{"login":"paulgrever","id":3664281,"avatar_url":"https://avatars.githubusercontent.com/u/3664281?v=3","gravatar_id":"","url":"https://api.github.com/users/paulgrever","html_url":"https://github.com/paulgrever","followers_url":"https://api.github.com/users/paulgrever/followers","following_url":"https://api.github.com/users/paulgrever/following{/other_user}","gists_url":"https://api.github.com/users/paulgrever/gists{/gist_id}","starred_url":"https://api.github.com/users/paulgrever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulgrever/subscriptions","organizations_url":"https://api.github.com/users/paulgrever/orgs","repos_url":"https://api.github.com/users/paulgrever/repos","events_url":"https://api.github.com/users/paulgrever/events{/privacy}","received_events_url":"https://api.github.com/users/paulgrever/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-22T04:07:31Z","updated_at":"2015-06-22T04:07:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f081ed41f3a676c4e5abeb24f677c6f614c90b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/16/commits","review_comments_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/16/comments","review_comment_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/16/comments","statuses_url":"https://api.github.com/repos/paulgrever/glass-basement/statuses/69a05f4e6000dcc4c3dedf434a6d534aa47715fe","head":{"label":"paulgrever:interview","ref":"interview","sha":"69a05f4e6000dcc4c3dedf434a6d534aa47715fe","user":{"login":"paulgrever","id":3664281,"avatar_url":"https://avatars.githubusercontent.com/u/3664281?v=3","gravatar_id":"","url":"https://api.github.com/users/paulgrever","html_url":"https://github.com/paulgrever","followers_url":"https://api.github.com/users/paulgrever/followers","following_url":"https://api.github.com/users/paulgrever/following{/other_user}","gists_url":"https://api.github.com/users/paulgrever/gists{/gist_id}","starred_url":"https://api.github.com/users/paulgrever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulgrever/subscriptions","organizations_url":"https://api.github.com/users/paulgrever/orgs","repos_url":"https://api.github.com/users/paulgrever/repos","events_url":"https://api.github.com/users/paulgrever/events{/privacy}","received_events_url":"https://api.github.com/users/paulgrever/received_events","type":"User","site_admin":false},"repo":{"id":37420692,"name":"glass-basement","full_name":"paulgrever/glass-basement","owner":{"login":"paulgrever","id":3664281,"avatar_url":"https://avatars.githubusercontent.com/u/3664281?v=3","gravatar_id":"","url":"https://api.github.com/users/paulgrever","html_url":"https://github.com/paulgrever","followers_url":"https://api.github.com/users/paulgrever/followers","following_url":"https://api.github.com/users/paulgrever/following{/other_user}","gists_url":"https://api.github.com/users/paulgrever/gists{/gist_id}","starred_url":"https://api.github.com/users/paulgrever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulgrever/subscriptions","organizations_url":"https://api.github.com/users/paulgrever/orgs","repos_url":"https://api.github.com/users/paulgrever/repos","events_url":"https://api.github.com/users/paulgrever/events{/privacy}","received_events_url":"https://api.github.com/users/paulgrever/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulgrever/glass-basement","description":"","fork":false,"url":"https://api.github.com/repos/paulgrever/glass-basement","forks_url":"https://api.github.com/repos/paulgrever/glass-basement/forks","keys_url":"https://api.github.com/repos/paulgrever/glass-basement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulgrever/glass-basement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulgrever/glass-basement/teams","hooks_url":"https://api.github.com/repos/paulgrever/glass-basement/hooks","issue_events_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/events{/number}","events_url":"https://api.github.com/repos/paulgrever/glass-basement/events","assignees_url":"https://api.github.com/repos/paulgrever/glass-basement/assignees{/user}","branches_url":"https://api.github.com/repos/paulgrever/glass-basement/branches{/branch}","tags_url":"https://api.github.com/repos/paulgrever/glass-basement/tags","blobs_url":"https://api.github.com/repos/paulgrever/glass-basement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulgrever/glass-basement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulgrever/glass-basement/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulgrever/glass-basement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulgrever/glass-basement/statuses/{sha}","languages_url":"https://api.github.com/repos/paulgrever/glass-basement/languages","stargazers_url":"https://api.github.com/repos/paulgrever/glass-basement/stargazers","contributors_url":"https://api.github.com/repos/paulgrever/glass-basement/contributors","subscribers_url":"https://api.github.com/repos/paulgrever/glass-basement/subscribers","subscription_url":"https://api.github.com/repos/paulgrever/glass-basement/subscription","commits_url":"https://api.github.com/repos/paulgrever/glass-basement/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulgrever/glass-basement/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulgrever/glass-basement/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulgrever/glass-basement/contents/{+path}","compare_url":"https://api.github.com/repos/paulgrever/glass-basement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulgrever/glass-basement/merges","archive_url":"https://api.github.com/repos/paulgrever/glass-basement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulgrever/glass-basement/downloads","issues_url":"https://api.github.com/repos/paulgrever/glass-basement/issues{/number}","pulls_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls{/number}","milestones_url":"https://api.github.com/repos/paulgrever/glass-basement/milestones{/number}","notifications_url":"https://api.github.com/repos/paulgrever/glass-basement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulgrever/glass-basement/labels{/name}","releases_url":"https://api.github.com/repos/paulgrever/glass-basement/releases{/id}","created_at":"2015-06-14T16:46:29Z","updated_at":"2015-06-18T19:08:05Z","pushed_at":"2015-06-22T04:07:31Z","git_url":"git://github.com/paulgrever/glass-basement.git","ssh_url":"git@github.com:paulgrever/glass-basement.git","clone_url":"https://github.com/paulgrever/glass-basement.git","svn_url":"https://github.com/paulgrever/glass-basement","homepage":null,"size":448,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"paulgrever:master","ref":"master","sha":"3b358e004cf0a42fcee49866d06353a76ed9c4a6","user":{"login":"paulgrever","id":3664281,"avatar_url":"https://avatars.githubusercontent.com/u/3664281?v=3","gravatar_id":"","url":"https://api.github.com/users/paulgrever","html_url":"https://github.com/paulgrever","followers_url":"https://api.github.com/users/paulgrever/followers","following_url":"https://api.github.com/users/paulgrever/following{/other_user}","gists_url":"https://api.github.com/users/paulgrever/gists{/gist_id}","starred_url":"https://api.github.com/users/paulgrever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulgrever/subscriptions","organizations_url":"https://api.github.com/users/paulgrever/orgs","repos_url":"https://api.github.com/users/paulgrever/repos","events_url":"https://api.github.com/users/paulgrever/events{/privacy}","received_events_url":"https://api.github.com/users/paulgrever/received_events","type":"User","site_admin":false},"repo":{"id":37420692,"name":"glass-basement","full_name":"paulgrever/glass-basement","owner":{"login":"paulgrever","id":3664281,"avatar_url":"https://avatars.githubusercontent.com/u/3664281?v=3","gravatar_id":"","url":"https://api.github.com/users/paulgrever","html_url":"https://github.com/paulgrever","followers_url":"https://api.github.com/users/paulgrever/followers","following_url":"https://api.github.com/users/paulgrever/following{/other_user}","gists_url":"https://api.github.com/users/paulgrever/gists{/gist_id}","starred_url":"https://api.github.com/users/paulgrever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulgrever/subscriptions","organizations_url":"https://api.github.com/users/paulgrever/orgs","repos_url":"https://api.github.com/users/paulgrever/repos","events_url":"https://api.github.com/users/paulgrever/events{/privacy}","received_events_url":"https://api.github.com/users/paulgrever/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulgrever/glass-basement","description":"","fork":false,"url":"https://api.github.com/repos/paulgrever/glass-basement","forks_url":"https://api.github.com/repos/paulgrever/glass-basement/forks","keys_url":"https://api.github.com/repos/paulgrever/glass-basement/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulgrever/glass-basement/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulgrever/glass-basement/teams","hooks_url":"https://api.github.com/repos/paulgrever/glass-basement/hooks","issue_events_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/events{/number}","events_url":"https://api.github.com/repos/paulgrever/glass-basement/events","assignees_url":"https://api.github.com/repos/paulgrever/glass-basement/assignees{/user}","branches_url":"https://api.github.com/repos/paulgrever/glass-basement/branches{/branch}","tags_url":"https://api.github.com/repos/paulgrever/glass-basement/tags","blobs_url":"https://api.github.com/repos/paulgrever/glass-basement/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulgrever/glass-basement/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulgrever/glass-basement/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulgrever/glass-basement/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulgrever/glass-basement/statuses/{sha}","languages_url":"https://api.github.com/repos/paulgrever/glass-basement/languages","stargazers_url":"https://api.github.com/repos/paulgrever/glass-basement/stargazers","contributors_url":"https://api.github.com/repos/paulgrever/glass-basement/contributors","subscribers_url":"https://api.github.com/repos/paulgrever/glass-basement/subscribers","subscription_url":"https://api.github.com/repos/paulgrever/glass-basement/subscription","commits_url":"https://api.github.com/repos/paulgrever/glass-basement/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulgrever/glass-basement/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulgrever/glass-basement/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulgrever/glass-basement/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulgrever/glass-basement/contents/{+path}","compare_url":"https://api.github.com/repos/paulgrever/glass-basement/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulgrever/glass-basement/merges","archive_url":"https://api.github.com/repos/paulgrever/glass-basement/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulgrever/glass-basement/downloads","issues_url":"https://api.github.com/repos/paulgrever/glass-basement/issues{/number}","pulls_url":"https://api.github.com/repos/paulgrever/glass-basement/pulls{/number}","milestones_url":"https://api.github.com/repos/paulgrever/glass-basement/milestones{/number}","notifications_url":"https://api.github.com/repos/paulgrever/glass-basement/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulgrever/glass-basement/labels{/name}","releases_url":"https://api.github.com/repos/paulgrever/glass-basement/releases{/id}","created_at":"2015-06-14T16:46:29Z","updated_at":"2015-06-18T19:08:05Z","pushed_at":"2015-06-22T04:07:31Z","git_url":"git://github.com/paulgrever/glass-basement.git","ssh_url":"git@github.com:paulgrever/glass-basement.git","clone_url":"https://github.com/paulgrever/glass-basement.git","svn_url":"https://github.com/paulgrever/glass-basement","homepage":null,"size":448,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/16"},"html":{"href":"https://github.com/paulgrever/glass-basement/pull/16"},"issue":{"href":"https://api.github.com/repos/paulgrever/glass-basement/issues/16"},"comments":{"href":"https://api.github.com/repos/paulgrever/glass-basement/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paulgrever/glass-basement/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/paulgrever/glass-basement/statuses/69a05f4e6000dcc4c3dedf434a6d534aa47715fe"}}}}