{"action":"created","comment":{"url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments/83010259","pull_request_review_id":3878066,"id":83010259,"diff_hunk":"@@ -0,0 +1,105 @@\n+require \"rails_helper\"\n+\n+feature \"admin\" do\n+  let!(:user1) { FactoryGirl.create(:user) }\n+  let!(:movie1) { FactoryGirl.create(:movie, title: \"Harry Potter 1\") }\n+  let!(:movie2) { FactoryGirl.create(:movie, title: \"Harry Potter 2\", studio: \"studio\", year: \"2002\", rating: \"R\", genre: \"xgenre\", cast_member: \"xcast\", director: \"xdirector\", screen_writer: \"xscreen writer\" ) }\n+\n+  describe \"User searches for a movie\" do\n+    before do\n+      user_sign_in(user1)\n+    end\n+\n+    scenario \"user searches for movie1\" do\n+      fill_in \"search\", with: movie1.title\n+      click_button(\"Search\")\n+\n+      expect(page).to have_content(\"Search Results: 1\")\n+      expect(page).to have_content(movie1.title)\n+      expect(page).to_not have_content(movie2.title)\n+    end\n+\n+    scenario \"user searches for movie1's studio\" do\n+      fill_in \"search\", with: movie1.studio\n+      click_button(\"Search\")\n+\n+      expect(page).to have_content(\"Search Results: 1\")\n+      expect(page).to have_content(movie1.title)\n+      expect(page).to_not have_content(movie2.title)\n+    end\n+\n+    scenario \"user searches for movie1's year\" do\n+      fill_in \"search\", with: movie1.studio\n+      click_button(\"Search\")\n+\n+      expect(page).to have_content(\"Search Results: 1\")\n+      expect(page).to have_content(movie1.title)\n+      expect(page).to_not have_content(movie2.title)\n+    end\n+\n+    scenario \"user searches for movie1's rating\" do\n+      fill_in \"search\", with: movie1.studio\n+      click_button(\"Search\")\n+\n+      expect(page).to have_content(\"Search Results: 1\")\n+      expect(page).to have_content(movie1.title)\n+      expect(page).to_not have_content(movie2.title)\n+    end\n+\n+    scenario \"user searches for movie1's genre\" do\n+      fill_in \"search\", with: movie1.studio\n+      click_button(\"Search\")\n+\n+      expect(page).to have_content(\"Search Results: 1\")\n+      expect(page).to have_content(movie1.title)\n+      expect(page).to_not have_content(movie2.title)\n+    end\n+\n+    scenario \"user searches for movie1's cast\" do\n+      fill_in \"search\", with: movie1.cast_member\n+      click_button(\"Search\")\n+\n+      expect(page).to have_content(\"Search Results: 1\")\n+      expect(page).to have_content(movie1.title)\n+      expect(page).to_not have_content(movie2.title)\n+    end\n+\n+    scenario \"user searches for movie1's director\" do\n+      fill_in \"search\", with: movie1.director\n+      click_button(\"Search\")\n+\n+      expect(page).to have_content(\"Search Results: 1\")\n+      expect(page).to have_content(movie1.title)\n+      expect(page).to_not have_content(movie2.title)\n+    end\n+\n+    scenario \"user searches for movie1's screen_writer\" do\n+      fill_in \"search\", with: movie1.screen_writer\n+      click_button(\"Search\")\n+\n+      expect(page).to have_content(\"Search Results: 1\")\n+      expect(page).to have_content(movie1.title)\n+      expect(page).to_not have_content(movie2.title)\n+    end\n+\n+    scenario \"user does not get a matching search\" do\n+      fill_in \"search\", with: \"Nomatch\"\n+      click_button(\"Search\")\n+\n+      expect(page).to have_content(\"Search Results: 0\")\n+      expect(page).to have_content(\"There are no movies containing the term Nomatch.\")\n+      expect(page).to_not have_content(movie1.title)\n+      expect(page).to_not have_content(movie2.title)\n+    end\n+\n+    scenario \"user searches blank \" do\n+      click_button(\"Search\")\n+\n+      expect(page).to have_content(\"Search Results: 0\")\n+      expect(page).to have_content(\"There are no movies containing the term  .\")\n+      expect(page).to_not have_content(movie1.title)\n+      expect(page).to_not have_content(movie2.title)\n+    end\n+  end\n+","path":"spec/features/17_searchengine_spec.rb","position":104,"original_position":104,"commit_id":"d8efb9158671897ece7e81c25f31e3a98f81b73d","original_commit_id":"d8efb9158671897ece7e81c25f31e3a98f81b73d","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Extra empty line detected at block body end.","created_at":"2016-10-12T13:57:45Z","updated_at":"2016-10-12T13:57:45Z","html_url":"https://github.com/noahmilstein/cinephile/pull/17#discussion_r83010259","pull_request_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments/83010259"},"html":{"href":"https://github.com/noahmilstein/cinephile/pull/17#discussion_r83010259"},"pull_request":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/17","id":89020871,"html_url":"https://github.com/noahmilstein/cinephile/pull/17","diff_url":"https://github.com/noahmilstein/cinephile/pull/17.diff","patch_url":"https://github.com/noahmilstein/cinephile/pull/17.patch","issue_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/17","number":17,"state":"open","locked":false,"title":"Searchengine","user":{"login":"jsohpennstater","id":21065272,"avatar_url":"https://avatars.githubusercontent.com/u/21065272?v=3","gravatar_id":"","url":"https://api.github.com/users/jsohpennstater","html_url":"https://github.com/jsohpennstater","followers_url":"https://api.github.com/users/jsohpennstater/followers","following_url":"https://api.github.com/users/jsohpennstater/following{/other_user}","gists_url":"https://api.github.com/users/jsohpennstater/gists{/gist_id}","starred_url":"https://api.github.com/users/jsohpennstater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsohpennstater/subscriptions","organizations_url":"https://api.github.com/users/jsohpennstater/orgs","repos_url":"https://api.github.com/users/jsohpennstater/repos","events_url":"https://api.github.com/users/jsohpennstater/events{/privacy}","received_events_url":"https://api.github.com/users/jsohpennstater/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-12T13:57:35Z","updated_at":"2016-10-12T13:57:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa00883e4459ee609781143d9285440860cac333","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/17/commits","review_comments_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/17/comments","review_comment_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/17/comments","statuses_url":"https://api.github.com/repos/noahmilstein/cinephile/statuses/d8efb9158671897ece7e81c25f31e3a98f81b73d","head":{"label":"noahmilstein:searchengine","ref":"searchengine","sha":"d8efb9158671897ece7e81c25f31e3a98f81b73d","user":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"repo":{"id":69880248,"name":"cinephile","full_name":"noahmilstein/cinephile","owner":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/noahmilstein/cinephile","description":"Cinema review site","fork":false,"url":"https://api.github.com/repos/noahmilstein/cinephile","forks_url":"https://api.github.com/repos/noahmilstein/cinephile/forks","keys_url":"https://api.github.com/repos/noahmilstein/cinephile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noahmilstein/cinephile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noahmilstein/cinephile/teams","hooks_url":"https://api.github.com/repos/noahmilstein/cinephile/hooks","issue_events_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/events{/number}","events_url":"https://api.github.com/repos/noahmilstein/cinephile/events","assignees_url":"https://api.github.com/repos/noahmilstein/cinephile/assignees{/user}","branches_url":"https://api.github.com/repos/noahmilstein/cinephile/branches{/branch}","tags_url":"https://api.github.com/repos/noahmilstein/cinephile/tags","blobs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noahmilstein/cinephile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/refs{/sha}","trees_url":"https://api.github.com/repos/noahmilstein/cinephile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noahmilstein/cinephile/statuses/{sha}","languages_url":"https://api.github.com/repos/noahmilstein/cinephile/languages","stargazers_url":"https://api.github.com/repos/noahmilstein/cinephile/stargazers","contributors_url":"https://api.github.com/repos/noahmilstein/cinephile/contributors","subscribers_url":"https://api.github.com/repos/noahmilstein/cinephile/subscribers","subscription_url":"https://api.github.com/repos/noahmilstein/cinephile/subscription","commits_url":"https://api.github.com/repos/noahmilstein/cinephile/commits{/sha}","git_commits_url":"https://api.github.com/repos/noahmilstein/cinephile/git/commits{/sha}","comments_url":"https://api.github.com/repos/noahmilstein/cinephile/comments{/number}","issue_comment_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/comments{/number}","contents_url":"https://api.github.com/repos/noahmilstein/cinephile/contents/{+path}","compare_url":"https://api.github.com/repos/noahmilstein/cinephile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noahmilstein/cinephile/merges","archive_url":"https://api.github.com/repos/noahmilstein/cinephile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noahmilstein/cinephile/downloads","issues_url":"https://api.github.com/repos/noahmilstein/cinephile/issues{/number}","pulls_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls{/number}","milestones_url":"https://api.github.com/repos/noahmilstein/cinephile/milestones{/number}","notifications_url":"https://api.github.com/repos/noahmilstein/cinephile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noahmilstein/cinephile/labels{/name}","releases_url":"https://api.github.com/repos/noahmilstein/cinephile/releases{/id}","deployments_url":"https://api.github.com/repos/noahmilstein/cinephile/deployments","created_at":"2016-10-03T14:45:05Z","updated_at":"2016-10-03T15:08:29Z","pushed_at":"2016-10-12T13:57:36Z","git_url":"git://github.com/noahmilstein/cinephile.git","ssh_url":"git@github.com:noahmilstein/cinephile.git","clone_url":"https://github.com/noahmilstein/cinephile.git","svn_url":"https://github.com/noahmilstein/cinephile","homepage":null,"size":818,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"noahmilstein:master","ref":"master","sha":"8c091f4e46fb8a869e5de7e22441ebb34294a718","user":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"repo":{"id":69880248,"name":"cinephile","full_name":"noahmilstein/cinephile","owner":{"login":"noahmilstein","id":13581401,"avatar_url":"https://avatars.githubusercontent.com/u/13581401?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmilstein","html_url":"https://github.com/noahmilstein","followers_url":"https://api.github.com/users/noahmilstein/followers","following_url":"https://api.github.com/users/noahmilstein/following{/other_user}","gists_url":"https://api.github.com/users/noahmilstein/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmilstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmilstein/subscriptions","organizations_url":"https://api.github.com/users/noahmilstein/orgs","repos_url":"https://api.github.com/users/noahmilstein/repos","events_url":"https://api.github.com/users/noahmilstein/events{/privacy}","received_events_url":"https://api.github.com/users/noahmilstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/noahmilstein/cinephile","description":"Cinema review site","fork":false,"url":"https://api.github.com/repos/noahmilstein/cinephile","forks_url":"https://api.github.com/repos/noahmilstein/cinephile/forks","keys_url":"https://api.github.com/repos/noahmilstein/cinephile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/noahmilstein/cinephile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/noahmilstein/cinephile/teams","hooks_url":"https://api.github.com/repos/noahmilstein/cinephile/hooks","issue_events_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/events{/number}","events_url":"https://api.github.com/repos/noahmilstein/cinephile/events","assignees_url":"https://api.github.com/repos/noahmilstein/cinephile/assignees{/user}","branches_url":"https://api.github.com/repos/noahmilstein/cinephile/branches{/branch}","tags_url":"https://api.github.com/repos/noahmilstein/cinephile/tags","blobs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/noahmilstein/cinephile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/noahmilstein/cinephile/git/refs{/sha}","trees_url":"https://api.github.com/repos/noahmilstein/cinephile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/noahmilstein/cinephile/statuses/{sha}","languages_url":"https://api.github.com/repos/noahmilstein/cinephile/languages","stargazers_url":"https://api.github.com/repos/noahmilstein/cinephile/stargazers","contributors_url":"https://api.github.com/repos/noahmilstein/cinephile/contributors","subscribers_url":"https://api.github.com/repos/noahmilstein/cinephile/subscribers","subscription_url":"https://api.github.com/repos/noahmilstein/cinephile/subscription","commits_url":"https://api.github.com/repos/noahmilstein/cinephile/commits{/sha}","git_commits_url":"https://api.github.com/repos/noahmilstein/cinephile/git/commits{/sha}","comments_url":"https://api.github.com/repos/noahmilstein/cinephile/comments{/number}","issue_comment_url":"https://api.github.com/repos/noahmilstein/cinephile/issues/comments{/number}","contents_url":"https://api.github.com/repos/noahmilstein/cinephile/contents/{+path}","compare_url":"https://api.github.com/repos/noahmilstein/cinephile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/noahmilstein/cinephile/merges","archive_url":"https://api.github.com/repos/noahmilstein/cinephile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/noahmilstein/cinephile/downloads","issues_url":"https://api.github.com/repos/noahmilstein/cinephile/issues{/number}","pulls_url":"https://api.github.com/repos/noahmilstein/cinephile/pulls{/number}","milestones_url":"https://api.github.com/repos/noahmilstein/cinephile/milestones{/number}","notifications_url":"https://api.github.com/repos/noahmilstein/cinephile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/noahmilstein/cinephile/labels{/name}","releases_url":"https://api.github.com/repos/noahmilstein/cinephile/releases{/id}","deployments_url":"https://api.github.com/repos/noahmilstein/cinephile/deployments","created_at":"2016-10-03T14:45:05Z","updated_at":"2016-10-03T15:08:29Z","pushed_at":"2016-10-12T13:57:36Z","git_url":"git://github.com/noahmilstein/cinephile.git","ssh_url":"git@github.com:noahmilstein/cinephile.git","clone_url":"https://github.com/noahmilstein/cinephile.git","svn_url":"https://github.com/noahmilstein/cinephile","homepage":null,"size":818,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/17"},"html":{"href":"https://github.com/noahmilstein/cinephile/pull/17"},"issue":{"href":"https://api.github.com/repos/noahmilstein/cinephile/issues/17"},"comments":{"href":"https://api.github.com/repos/noahmilstein/cinephile/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/noahmilstein/cinephile/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/noahmilstein/cinephile/statuses/d8efb9158671897ece7e81c25f31e3a98f81b73d"}}}}
{"actor":{"display_login":"houndci-bot"}}