{"action":"created","comment":{"url":"https://api.github.com/repos/ledes/BAE/pulls/comments/41536424","id":41536424,"diff_hunk":"@@ -7,4 +7,59 @@\n   it { should validate_presence_of :category}\n   it { should validate_presence_of :response}\n \n+\n+  scenario \"one_of_three_interactions returns error if sentence is blank\" do\n+    interaction = Interaction.create(\n+      category: \"Sentence\",\n+      sentence: '',\n+      response: Faker::Lorem.sentence\n+    )\n+    expect(interaction.one_of_three_interactions).to eq([\"You need to fill the sentence field\", \"You need to fill the sentence field\"])\n+  end\n+\n+  scenario \"one_of_three_interactions returns error if keyword1 is blank choosing category keyword\" do\n+    interaction = Interaction.create(\n+      category: \"Keyword\",\n+      sentiment: \"Positive\",\n+      keyword1: '',\n+      response: Faker::Lorem.sentence,\n+    )\n+    expect(interaction.one_of_three_interactions).to eq([\"You need to fill the keyword field\", \"You need to fill the keyword field\"])\n+  end\n+\n+\n+  scenario \"one_of_three_interactions returns error if keyword1 is blank choosing category combo\" do\n+    interaction  = Interaction.create(","path":"spec/models/interactions_spec.rb","position":26,"original_position":26,"commit_id":"ee8fffa27132383d0060ecaf8dfec89f7f07338c","original_commit_id":"ee8fffa27132383d0060ecaf8dfec89f7f07338c","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":"Unnecessary spacing detected.","created_at":"2015-10-08T16:34:15Z","updated_at":"2015-10-08T16:34:15Z","html_url":"https://github.com/ledes/BAE/pull/14#discussion_r41536424","pull_request_url":"https://api.github.com/repos/ledes/BAE/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/ledes/BAE/pulls/comments/41536424"},"html":{"href":"https://github.com/ledes/BAE/pull/14#discussion_r41536424"},"pull_request":{"href":"https://api.github.com/repos/ledes/BAE/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/ledes/BAE/pulls/14","id":47176082,"html_url":"https://github.com/ledes/BAE/pull/14","diff_url":"https://github.com/ledes/BAE/pull/14.diff","patch_url":"https://github.com/ledes/BAE/pull/14.patch","issue_url":"https://api.github.com/repos/ledes/BAE/issues/14","number":14,"state":"open","locked":false,"title":"Crud interactions","user":{"login":"ledes","id":12192218,"avatar_url":"https://avatars.githubusercontent.com/u/12192218?v=3","gravatar_id":"","url":"https://api.github.com/users/ledes","html_url":"https://github.com/ledes","followers_url":"https://api.github.com/users/ledes/followers","following_url":"https://api.github.com/users/ledes/following{/other_user}","gists_url":"https://api.github.com/users/ledes/gists{/gist_id}","starred_url":"https://api.github.com/users/ledes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledes/subscriptions","organizations_url":"https://api.github.com/users/ledes/orgs","repos_url":"https://api.github.com/users/ledes/repos","events_url":"https://api.github.com/users/ledes/events{/privacy}","received_events_url":"https://api.github.com/users/ledes/received_events","type":"User","site_admin":false},"body":"-Tests for interactions CRUD actions\r\n-Interactions CRUD actions\r\n-Custom validation for interactions","created_at":"2015-10-08T16:34:05Z","updated_at":"2015-10-08T16:34:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a4dc8dda7e310173d374bd28a0b9210b4eaa197","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ledes/BAE/pulls/14/commits","review_comments_url":"https://api.github.com/repos/ledes/BAE/pulls/14/comments","review_comment_url":"https://api.github.com/repos/ledes/BAE/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ledes/BAE/issues/14/comments","statuses_url":"https://api.github.com/repos/ledes/BAE/statuses/ee8fffa27132383d0060ecaf8dfec89f7f07338c","head":{"label":"ledes:crud_interactions","ref":"crud_interactions","sha":"ee8fffa27132383d0060ecaf8dfec89f7f07338c","user":{"login":"ledes","id":12192218,"avatar_url":"https://avatars.githubusercontent.com/u/12192218?v=3","gravatar_id":"","url":"https://api.github.com/users/ledes","html_url":"https://github.com/ledes","followers_url":"https://api.github.com/users/ledes/followers","following_url":"https://api.github.com/users/ledes/following{/other_user}","gists_url":"https://api.github.com/users/ledes/gists{/gist_id}","starred_url":"https://api.github.com/users/ledes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledes/subscriptions","organizations_url":"https://api.github.com/users/ledes/orgs","repos_url":"https://api.github.com/users/ledes/repos","events_url":"https://api.github.com/users/ledes/events{/privacy}","received_events_url":"https://api.github.com/users/ledes/received_events","type":"User","site_admin":false},"repo":{"id":42894843,"name":"BAE","full_name":"ledes/BAE","owner":{"login":"ledes","id":12192218,"avatar_url":"https://avatars.githubusercontent.com/u/12192218?v=3","gravatar_id":"","url":"https://api.github.com/users/ledes","html_url":"https://github.com/ledes","followers_url":"https://api.github.com/users/ledes/followers","following_url":"https://api.github.com/users/ledes/following{/other_user}","gists_url":"https://api.github.com/users/ledes/gists{/gist_id}","starred_url":"https://api.github.com/users/ledes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledes/subscriptions","organizations_url":"https://api.github.com/users/ledes/orgs","repos_url":"https://api.github.com/users/ledes/repos","events_url":"https://api.github.com/users/ledes/events{/privacy}","received_events_url":"https://api.github.com/users/ledes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ledes/BAE","description":"","fork":false,"url":"https://api.github.com/repos/ledes/BAE","forks_url":"https://api.github.com/repos/ledes/BAE/forks","keys_url":"https://api.github.com/repos/ledes/BAE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ledes/BAE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ledes/BAE/teams","hooks_url":"https://api.github.com/repos/ledes/BAE/hooks","issue_events_url":"https://api.github.com/repos/ledes/BAE/issues/events{/number}","events_url":"https://api.github.com/repos/ledes/BAE/events","assignees_url":"https://api.github.com/repos/ledes/BAE/assignees{/user}","branches_url":"https://api.github.com/repos/ledes/BAE/branches{/branch}","tags_url":"https://api.github.com/repos/ledes/BAE/tags","blobs_url":"https://api.github.com/repos/ledes/BAE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ledes/BAE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ledes/BAE/git/refs{/sha}","trees_url":"https://api.github.com/repos/ledes/BAE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ledes/BAE/statuses/{sha}","languages_url":"https://api.github.com/repos/ledes/BAE/languages","stargazers_url":"https://api.github.com/repos/ledes/BAE/stargazers","contributors_url":"https://api.github.com/repos/ledes/BAE/contributors","subscribers_url":"https://api.github.com/repos/ledes/BAE/subscribers","subscription_url":"https://api.github.com/repos/ledes/BAE/subscription","commits_url":"https://api.github.com/repos/ledes/BAE/commits{/sha}","git_commits_url":"https://api.github.com/repos/ledes/BAE/git/commits{/sha}","comments_url":"https://api.github.com/repos/ledes/BAE/comments{/number}","issue_comment_url":"https://api.github.com/repos/ledes/BAE/issues/comments{/number}","contents_url":"https://api.github.com/repos/ledes/BAE/contents/{+path}","compare_url":"https://api.github.com/repos/ledes/BAE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ledes/BAE/merges","archive_url":"https://api.github.com/repos/ledes/BAE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ledes/BAE/downloads","issues_url":"https://api.github.com/repos/ledes/BAE/issues{/number}","pulls_url":"https://api.github.com/repos/ledes/BAE/pulls{/number}","milestones_url":"https://api.github.com/repos/ledes/BAE/milestones{/number}","notifications_url":"https://api.github.com/repos/ledes/BAE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ledes/BAE/labels{/name}","releases_url":"https://api.github.com/repos/ledes/BAE/releases{/id}","created_at":"2015-09-21T21:32:55Z","updated_at":"2015-10-03T13:43:16Z","pushed_at":"2015-10-08T16:34:05Z","git_url":"git://github.com/ledes/BAE.git","ssh_url":"git@github.com:ledes/BAE.git","clone_url":"https://github.com/ledes/BAE.git","svn_url":"https://github.com/ledes/BAE","homepage":null,"size":24680,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ledes:master","ref":"master","sha":"9c0b93213826461c08d4b85506326c283bafdbc9","user":{"login":"ledes","id":12192218,"avatar_url":"https://avatars.githubusercontent.com/u/12192218?v=3","gravatar_id":"","url":"https://api.github.com/users/ledes","html_url":"https://github.com/ledes","followers_url":"https://api.github.com/users/ledes/followers","following_url":"https://api.github.com/users/ledes/following{/other_user}","gists_url":"https://api.github.com/users/ledes/gists{/gist_id}","starred_url":"https://api.github.com/users/ledes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledes/subscriptions","organizations_url":"https://api.github.com/users/ledes/orgs","repos_url":"https://api.github.com/users/ledes/repos","events_url":"https://api.github.com/users/ledes/events{/privacy}","received_events_url":"https://api.github.com/users/ledes/received_events","type":"User","site_admin":false},"repo":{"id":42894843,"name":"BAE","full_name":"ledes/BAE","owner":{"login":"ledes","id":12192218,"avatar_url":"https://avatars.githubusercontent.com/u/12192218?v=3","gravatar_id":"","url":"https://api.github.com/users/ledes","html_url":"https://github.com/ledes","followers_url":"https://api.github.com/users/ledes/followers","following_url":"https://api.github.com/users/ledes/following{/other_user}","gists_url":"https://api.github.com/users/ledes/gists{/gist_id}","starred_url":"https://api.github.com/users/ledes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledes/subscriptions","organizations_url":"https://api.github.com/users/ledes/orgs","repos_url":"https://api.github.com/users/ledes/repos","events_url":"https://api.github.com/users/ledes/events{/privacy}","received_events_url":"https://api.github.com/users/ledes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ledes/BAE","description":"","fork":false,"url":"https://api.github.com/repos/ledes/BAE","forks_url":"https://api.github.com/repos/ledes/BAE/forks","keys_url":"https://api.github.com/repos/ledes/BAE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ledes/BAE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ledes/BAE/teams","hooks_url":"https://api.github.com/repos/ledes/BAE/hooks","issue_events_url":"https://api.github.com/repos/ledes/BAE/issues/events{/number}","events_url":"https://api.github.com/repos/ledes/BAE/events","assignees_url":"https://api.github.com/repos/ledes/BAE/assignees{/user}","branches_url":"https://api.github.com/repos/ledes/BAE/branches{/branch}","tags_url":"https://api.github.com/repos/ledes/BAE/tags","blobs_url":"https://api.github.com/repos/ledes/BAE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ledes/BAE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ledes/BAE/git/refs{/sha}","trees_url":"https://api.github.com/repos/ledes/BAE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ledes/BAE/statuses/{sha}","languages_url":"https://api.github.com/repos/ledes/BAE/languages","stargazers_url":"https://api.github.com/repos/ledes/BAE/stargazers","contributors_url":"https://api.github.com/repos/ledes/BAE/contributors","subscribers_url":"https://api.github.com/repos/ledes/BAE/subscribers","subscription_url":"https://api.github.com/repos/ledes/BAE/subscription","commits_url":"https://api.github.com/repos/ledes/BAE/commits{/sha}","git_commits_url":"https://api.github.com/repos/ledes/BAE/git/commits{/sha}","comments_url":"https://api.github.com/repos/ledes/BAE/comments{/number}","issue_comment_url":"https://api.github.com/repos/ledes/BAE/issues/comments{/number}","contents_url":"https://api.github.com/repos/ledes/BAE/contents/{+path}","compare_url":"https://api.github.com/repos/ledes/BAE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ledes/BAE/merges","archive_url":"https://api.github.com/repos/ledes/BAE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ledes/BAE/downloads","issues_url":"https://api.github.com/repos/ledes/BAE/issues{/number}","pulls_url":"https://api.github.com/repos/ledes/BAE/pulls{/number}","milestones_url":"https://api.github.com/repos/ledes/BAE/milestones{/number}","notifications_url":"https://api.github.com/repos/ledes/BAE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ledes/BAE/labels{/name}","releases_url":"https://api.github.com/repos/ledes/BAE/releases{/id}","created_at":"2015-09-21T21:32:55Z","updated_at":"2015-10-03T13:43:16Z","pushed_at":"2015-10-08T16:34:05Z","git_url":"git://github.com/ledes/BAE.git","ssh_url":"git@github.com:ledes/BAE.git","clone_url":"https://github.com/ledes/BAE.git","svn_url":"https://github.com/ledes/BAE","homepage":null,"size":24680,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ledes/BAE/pulls/14"},"html":{"href":"https://github.com/ledes/BAE/pull/14"},"issue":{"href":"https://api.github.com/repos/ledes/BAE/issues/14"},"comments":{"href":"https://api.github.com/repos/ledes/BAE/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/ledes/BAE/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/ledes/BAE/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ledes/BAE/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/ledes/BAE/statuses/ee8fffa27132383d0060ecaf8dfec89f7f07338c"}}}}