{"action":"created","comment":{"url":"https://api.github.com/repos/bf86/dive-site/pulls/comments/34069937","id":34069937,"diff_hunk":"@@ -32,4 +32,17 @@\n     end\n   end\n \n+  describe \"#search\" do\n+    let!(:great_barrier_reef) { FactoryGirl.create(:dive_site,\n+                                                    name: \"Great Barrier Reef\") }\n+\n+    let!(:hanauama_bay) { FactoryGirl.create(:dive_site,\n+                                              name: \"Hanauma Bay\") }","path":"spec/models/dive_site_spec.rb","position":18,"original_position":18,"commit_id":"edb4792f380f610e653ed50800c3e5a94d8c98d6","original_commit_id":"edb4792f380f610e653ed50800c3e5a94d8c98d6","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":"Align the parameters of a method call if they span more than one line.<br>Expression at 40, 68 should be on its own line.","created_at":"2015-07-07T18:00:38Z","updated_at":"2015-07-07T18:00:38Z","html_url":"https://github.com/bf86/dive-site/pull/17#discussion_r34069937","pull_request_url":"https://api.github.com/repos/bf86/dive-site/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/bf86/dive-site/pulls/comments/34069937"},"html":{"href":"https://github.com/bf86/dive-site/pull/17#discussion_r34069937"},"pull_request":{"href":"https://api.github.com/repos/bf86/dive-site/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/bf86/dive-site/pulls/17","id":39398566,"html_url":"https://github.com/bf86/dive-site/pull/17","diff_url":"https://github.com/bf86/dive-site/pull/17.diff","patch_url":"https://github.com/bf86/dive-site/pull/17.patch","issue_url":"https://api.github.com/repos/bf86/dive-site/issues/17","number":17,"state":"open","locked":false,"title":"Bf search function","user":{"login":"bf86","id":10407163,"avatar_url":"https://avatars.githubusercontent.com/u/10407163?v=3","gravatar_id":"","url":"https://api.github.com/users/bf86","html_url":"https://github.com/bf86","followers_url":"https://api.github.com/users/bf86/followers","following_url":"https://api.github.com/users/bf86/following{/other_user}","gists_url":"https://api.github.com/users/bf86/gists{/gist_id}","starred_url":"https://api.github.com/users/bf86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bf86/subscriptions","organizations_url":"https://api.github.com/users/bf86/orgs","repos_url":"https://api.github.com/users/bf86/repos","events_url":"https://api.github.com/users/bf86/events{/privacy}","received_events_url":"https://api.github.com/users/bf86/received_events","type":"User","site_admin":false},"body":"added search function for dive sites and companion feature and model tests","created_at":"2015-07-07T18:00:34Z","updated_at":"2015-07-07T18:00:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bda78bab6c2bc3396e0f7ae1c1454ce27fd62b0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bf86/dive-site/pulls/17/commits","review_comments_url":"https://api.github.com/repos/bf86/dive-site/pulls/17/comments","review_comment_url":"https://api.github.com/repos/bf86/dive-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bf86/dive-site/issues/17/comments","statuses_url":"https://api.github.com/repos/bf86/dive-site/statuses/edb4792f380f610e653ed50800c3e5a94d8c98d6","head":{"label":"bf86:bf_search_function","ref":"bf_search_function","sha":"edb4792f380f610e653ed50800c3e5a94d8c98d6","user":{"login":"bf86","id":10407163,"avatar_url":"https://avatars.githubusercontent.com/u/10407163?v=3","gravatar_id":"","url":"https://api.github.com/users/bf86","html_url":"https://github.com/bf86","followers_url":"https://api.github.com/users/bf86/followers","following_url":"https://api.github.com/users/bf86/following{/other_user}","gists_url":"https://api.github.com/users/bf86/gists{/gist_id}","starred_url":"https://api.github.com/users/bf86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bf86/subscriptions","organizations_url":"https://api.github.com/users/bf86/orgs","repos_url":"https://api.github.com/users/bf86/repos","events_url":"https://api.github.com/users/bf86/events{/privacy}","received_events_url":"https://api.github.com/users/bf86/received_events","type":"User","site_admin":false},"repo":{"id":38256074,"name":"dive-site","full_name":"bf86/dive-site","owner":{"login":"bf86","id":10407163,"avatar_url":"https://avatars.githubusercontent.com/u/10407163?v=3","gravatar_id":"","url":"https://api.github.com/users/bf86","html_url":"https://github.com/bf86","followers_url":"https://api.github.com/users/bf86/followers","following_url":"https://api.github.com/users/bf86/following{/other_user}","gists_url":"https://api.github.com/users/bf86/gists{/gist_id}","starred_url":"https://api.github.com/users/bf86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bf86/subscriptions","organizations_url":"https://api.github.com/users/bf86/orgs","repos_url":"https://api.github.com/users/bf86/repos","events_url":"https://api.github.com/users/bf86/events{/privacy}","received_events_url":"https://api.github.com/users/bf86/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bf86/dive-site","description":null,"fork":false,"url":"https://api.github.com/repos/bf86/dive-site","forks_url":"https://api.github.com/repos/bf86/dive-site/forks","keys_url":"https://api.github.com/repos/bf86/dive-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bf86/dive-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bf86/dive-site/teams","hooks_url":"https://api.github.com/repos/bf86/dive-site/hooks","issue_events_url":"https://api.github.com/repos/bf86/dive-site/issues/events{/number}","events_url":"https://api.github.com/repos/bf86/dive-site/events","assignees_url":"https://api.github.com/repos/bf86/dive-site/assignees{/user}","branches_url":"https://api.github.com/repos/bf86/dive-site/branches{/branch}","tags_url":"https://api.github.com/repos/bf86/dive-site/tags","blobs_url":"https://api.github.com/repos/bf86/dive-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bf86/dive-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bf86/dive-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/bf86/dive-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bf86/dive-site/statuses/{sha}","languages_url":"https://api.github.com/repos/bf86/dive-site/languages","stargazers_url":"https://api.github.com/repos/bf86/dive-site/stargazers","contributors_url":"https://api.github.com/repos/bf86/dive-site/contributors","subscribers_url":"https://api.github.com/repos/bf86/dive-site/subscribers","subscription_url":"https://api.github.com/repos/bf86/dive-site/subscription","commits_url":"https://api.github.com/repos/bf86/dive-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/bf86/dive-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/bf86/dive-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/bf86/dive-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/bf86/dive-site/contents/{+path}","compare_url":"https://api.github.com/repos/bf86/dive-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bf86/dive-site/merges","archive_url":"https://api.github.com/repos/bf86/dive-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bf86/dive-site/downloads","issues_url":"https://api.github.com/repos/bf86/dive-site/issues{/number}","pulls_url":"https://api.github.com/repos/bf86/dive-site/pulls{/number}","milestones_url":"https://api.github.com/repos/bf86/dive-site/milestones{/number}","notifications_url":"https://api.github.com/repos/bf86/dive-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bf86/dive-site/labels{/name}","releases_url":"https://api.github.com/repos/bf86/dive-site/releases{/id}","created_at":"2015-06-29T15:47:54Z","updated_at":"2015-07-01T17:32:12Z","pushed_at":"2015-07-07T18:00:35Z","git_url":"git://github.com/bf86/dive-site.git","ssh_url":"git@github.com:bf86/dive-site.git","clone_url":"https://github.com/bf86/dive-site.git","svn_url":"https://github.com/bf86/dive-site","homepage":null,"size":1660,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"bf86:master","ref":"master","sha":"8732eae334cf9484be9123feedede9abda33a0b8","user":{"login":"bf86","id":10407163,"avatar_url":"https://avatars.githubusercontent.com/u/10407163?v=3","gravatar_id":"","url":"https://api.github.com/users/bf86","html_url":"https://github.com/bf86","followers_url":"https://api.github.com/users/bf86/followers","following_url":"https://api.github.com/users/bf86/following{/other_user}","gists_url":"https://api.github.com/users/bf86/gists{/gist_id}","starred_url":"https://api.github.com/users/bf86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bf86/subscriptions","organizations_url":"https://api.github.com/users/bf86/orgs","repos_url":"https://api.github.com/users/bf86/repos","events_url":"https://api.github.com/users/bf86/events{/privacy}","received_events_url":"https://api.github.com/users/bf86/received_events","type":"User","site_admin":false},"repo":{"id":38256074,"name":"dive-site","full_name":"bf86/dive-site","owner":{"login":"bf86","id":10407163,"avatar_url":"https://avatars.githubusercontent.com/u/10407163?v=3","gravatar_id":"","url":"https://api.github.com/users/bf86","html_url":"https://github.com/bf86","followers_url":"https://api.github.com/users/bf86/followers","following_url":"https://api.github.com/users/bf86/following{/other_user}","gists_url":"https://api.github.com/users/bf86/gists{/gist_id}","starred_url":"https://api.github.com/users/bf86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bf86/subscriptions","organizations_url":"https://api.github.com/users/bf86/orgs","repos_url":"https://api.github.com/users/bf86/repos","events_url":"https://api.github.com/users/bf86/events{/privacy}","received_events_url":"https://api.github.com/users/bf86/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bf86/dive-site","description":null,"fork":false,"url":"https://api.github.com/repos/bf86/dive-site","forks_url":"https://api.github.com/repos/bf86/dive-site/forks","keys_url":"https://api.github.com/repos/bf86/dive-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bf86/dive-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bf86/dive-site/teams","hooks_url":"https://api.github.com/repos/bf86/dive-site/hooks","issue_events_url":"https://api.github.com/repos/bf86/dive-site/issues/events{/number}","events_url":"https://api.github.com/repos/bf86/dive-site/events","assignees_url":"https://api.github.com/repos/bf86/dive-site/assignees{/user}","branches_url":"https://api.github.com/repos/bf86/dive-site/branches{/branch}","tags_url":"https://api.github.com/repos/bf86/dive-site/tags","blobs_url":"https://api.github.com/repos/bf86/dive-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bf86/dive-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bf86/dive-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/bf86/dive-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bf86/dive-site/statuses/{sha}","languages_url":"https://api.github.com/repos/bf86/dive-site/languages","stargazers_url":"https://api.github.com/repos/bf86/dive-site/stargazers","contributors_url":"https://api.github.com/repos/bf86/dive-site/contributors","subscribers_url":"https://api.github.com/repos/bf86/dive-site/subscribers","subscription_url":"https://api.github.com/repos/bf86/dive-site/subscription","commits_url":"https://api.github.com/repos/bf86/dive-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/bf86/dive-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/bf86/dive-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/bf86/dive-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/bf86/dive-site/contents/{+path}","compare_url":"https://api.github.com/repos/bf86/dive-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bf86/dive-site/merges","archive_url":"https://api.github.com/repos/bf86/dive-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bf86/dive-site/downloads","issues_url":"https://api.github.com/repos/bf86/dive-site/issues{/number}","pulls_url":"https://api.github.com/repos/bf86/dive-site/pulls{/number}","milestones_url":"https://api.github.com/repos/bf86/dive-site/milestones{/number}","notifications_url":"https://api.github.com/repos/bf86/dive-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bf86/dive-site/labels{/name}","releases_url":"https://api.github.com/repos/bf86/dive-site/releases{/id}","created_at":"2015-06-29T15:47:54Z","updated_at":"2015-07-01T17:32:12Z","pushed_at":"2015-07-07T18:00:35Z","git_url":"git://github.com/bf86/dive-site.git","ssh_url":"git@github.com:bf86/dive-site.git","clone_url":"https://github.com/bf86/dive-site.git","svn_url":"https://github.com/bf86/dive-site","homepage":null,"size":1660,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bf86/dive-site/pulls/17"},"html":{"href":"https://github.com/bf86/dive-site/pull/17"},"issue":{"href":"https://api.github.com/repos/bf86/dive-site/issues/17"},"comments":{"href":"https://api.github.com/repos/bf86/dive-site/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/bf86/dive-site/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/bf86/dive-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bf86/dive-site/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/bf86/dive-site/statuses/edb4792f380f610e653ed50800c3e5a94d8c98d6"}}}}