{"action":"created","comment":{"url":"https://api.github.com/repos/ledes/BAE/pulls/comments/41259531","id":41259531,"diff_hunk":"@@ -0,0 +1,88 @@\n+require \"rails_helper\"\n+\n+feature \"user sees list of interactions for a bot\", %{\n+  As a user\n+  I want to see the list of interactions for a specific bot\n+  So that I can see its vocabulary\n+\n+  Acceptance Criteria\n+  [X] I shouldnt see any table unless I click on one of the buttons\n+  [X] I must see only the sentences table if I click on the sentences button\n+  [X] I must see only the keywords table if I click on the keywords button\n+  [X] I must see only the combo table if I click on the combo button\n+\n+} do\n+  let!(:user) { FactoryGirl.create(:user) }\n+  let!(:bot) { FactoryGirl.create(:bot, user: user)}\n+\n+  before(:each) do\n+    10.times do\n+      Interaction.create(\n+        category: \"Sentence\",\n+        sentence: Faker::Lorem.sentence,\n+        response: Faker::Lorem.sentence\n+      )\n+      BotsInteraction.create(bot: bot, interaction: Interaction.last)\n+\n+      Interaction.create(\n+        category: \"Keyword\",\n+        sentiment: \"Positive\",\n+        keyword1: Faker::Lorem.word,\n+        response: Faker::Lorem.sentence,\n+      )\n+      BotsInteraction.create(bot: bot, interaction: Interaction.last)\n+\n+      Interaction.create(\n+        category: \"Combo\",\n+        sentiment: \"Positive\",\n+        keyword1: Faker::Lorem.word,\n+        keyword2: Faker::Lorem.word,\n+        response: Faker::Lorem.sentence,\n+      )\n+      BotsInteraction.create(bot: bot, interaction: Interaction.last)\n+    end\n+  end\n+\n+  scenario \"user doesnt see any table unless he clicks on a button \" do\n+    visit user_bot_path(user, bot)\n+    page.has_css?('sentences row text-center hidden')\n+    page.has_css?('keywords row text-center hidden')","path":"spec/features/interactions_table_spec.rb","position":49,"original_position":49,"commit_id":"7f44aa73ea13ea91f5d37c62d8f03022b9a1da60","original_commit_id":"7f44aa73ea13ea91f5d37c62d8f03022b9a1da60","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-10-06T12:57:16Z","updated_at":"2015-10-06T12:57:16Z","html_url":"https://github.com/ledes/BAE/pull/9#discussion_r41259531","pull_request_url":"https://api.github.com/repos/ledes/BAE/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/ledes/BAE/pulls/comments/41259531"},"html":{"href":"https://github.com/ledes/BAE/pull/9#discussion_r41259531"},"pull_request":{"href":"https://api.github.com/repos/ledes/BAE/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/ledes/BAE/pulls/9","id":46898802,"html_url":"https://github.com/ledes/BAE/pull/9","diff_url":"https://github.com/ledes/BAE/pull/9.diff","patch_url":"https://github.com/ledes/BAE/pull/9.patch","issue_url":"https://api.github.com/repos/ledes/BAE/issues/9","number":9,"state":"open","locked":false,"title":"Table 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":"-Created test to make sure user only sees the right table\r\n-Created JS function to hide tables\r\n-Started Readme file\r\n-Created seed file","created_at":"2015-10-06T12:57:07Z","updated_at":"2015-10-06T12:57:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0d67eef536a07bd7cb9cc4b05862e21b69fbac5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ledes/BAE/pulls/9/commits","review_comments_url":"https://api.github.com/repos/ledes/BAE/pulls/9/comments","review_comment_url":"https://api.github.com/repos/ledes/BAE/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ledes/BAE/issues/9/comments","statuses_url":"https://api.github.com/repos/ledes/BAE/statuses/7f44aa73ea13ea91f5d37c62d8f03022b9a1da60","head":{"label":"ledes:table_interactions","ref":"table_interactions","sha":"7f44aa73ea13ea91f5d37c62d8f03022b9a1da60","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-06T12:57:07Z","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":"c77fb53884a916b597e79d5feea777012734fbb0","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-06T12:57:07Z","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/9"},"html":{"href":"https://github.com/ledes/BAE/pull/9"},"issue":{"href":"https://api.github.com/repos/ledes/BAE/issues/9"},"comments":{"href":"https://api.github.com/repos/ledes/BAE/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/ledes/BAE/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/ledes/BAE/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ledes/BAE/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/ledes/BAE/statuses/7f44aa73ea13ea91f5d37c62d8f03022b9a1da60"}}}}