{"action":"created","comment":{"url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/comments/41320490","id":41320490,"diff_hunk":"@@ -196,7 +196,70 @@\n         expect(view.get('random_name')).to_not be_nil\n       end\n     end\n-  end\n+\n+    context 'when providing an invalid partial index filter' do\n+\n+      let(:spec) do\n+        { random:1 }\n+      end\n+\n+      it 'raises an exception' do\n+        expect {\n+          view.create_one(spec, partial_filter_expression: 5)\n+        }.to raise_error(Mongo::Error::OperationFailure)\n+      end","path":"spec/mongo/index/view_spec.rb","position":16,"original_position":16,"commit_id":"a98305dc79eabf47bc00320600a7edaf9572d059","original_commit_id":"a98305dc79eabf47bc00320600a7edaf9572d059","user":{"login":"estolfo","id":699369,"avatar_url":"https://avatars.githubusercontent.com/u/699369?v=3","gravatar_id":"","url":"https://api.github.com/users/estolfo","html_url":"https://github.com/estolfo","followers_url":"https://api.github.com/users/estolfo/followers","following_url":"https://api.github.com/users/estolfo/following{/other_user}","gists_url":"https://api.github.com/users/estolfo/gists{/gist_id}","starred_url":"https://api.github.com/users/estolfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estolfo/subscriptions","organizations_url":"https://api.github.com/users/estolfo/orgs","repos_url":"https://api.github.com/users/estolfo/repos","events_url":"https://api.github.com/users/estolfo/events{/privacy}","received_events_url":"https://api.github.com/users/estolfo/received_events","type":"User","site_admin":false},"body":"We normally add spaces in between tests.","created_at":"2015-10-06T20:52:12Z","updated_at":"2015-10-06T20:52:12Z","html_url":"https://github.com/mongodb/mongo-ruby-driver/pull/697#discussion_r41320490","pull_request_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/697","_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/comments/41320490"},"html":{"href":"https://github.com/mongodb/mongo-ruby-driver/pull/697#discussion_r41320490"},"pull_request":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/697"}}},"pull_request":{"url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/697","id":46944248,"html_url":"https://github.com/mongodb/mongo-ruby-driver/pull/697","diff_url":"https://github.com/mongodb/mongo-ruby-driver/pull/697.diff","patch_url":"https://github.com/mongodb/mongo-ruby-driver/pull/697.patch","issue_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/697","number":697,"state":"open","locked":false,"title":"RUBY-1034 - Support partial indexes","user":{"login":"aherlihy","id":1045019,"avatar_url":"https://avatars.githubusercontent.com/u/1045019?v=3","gravatar_id":"","url":"https://api.github.com/users/aherlihy","html_url":"https://github.com/aherlihy","followers_url":"https://api.github.com/users/aherlihy/followers","following_url":"https://api.github.com/users/aherlihy/following{/other_user}","gists_url":"https://api.github.com/users/aherlihy/gists{/gist_id}","starred_url":"https://api.github.com/users/aherlihy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aherlihy/subscriptions","organizations_url":"https://api.github.com/users/aherlihy/orgs","repos_url":"https://api.github.com/users/aherlihy/repos","events_url":"https://api.github.com/users/aherlihy/events{/privacy}","received_events_url":"https://api.github.com/users/aherlihy/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-06T19:07:36Z","updated_at":"2015-10-06T20:52:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3917ef491b83cb83dd64425d7636e3a51cfa3b14","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/697/commits","review_comments_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/697/comments","review_comment_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/697/comments","statuses_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/statuses/a98305dc79eabf47bc00320600a7edaf9572d059","head":{"label":"aherlihy:1034-partial-index","ref":"1034-partial-index","sha":"a98305dc79eabf47bc00320600a7edaf9572d059","user":{"login":"aherlihy","id":1045019,"avatar_url":"https://avatars.githubusercontent.com/u/1045019?v=3","gravatar_id":"","url":"https://api.github.com/users/aherlihy","html_url":"https://github.com/aherlihy","followers_url":"https://api.github.com/users/aherlihy/followers","following_url":"https://api.github.com/users/aherlihy/following{/other_user}","gists_url":"https://api.github.com/users/aherlihy/gists{/gist_id}","starred_url":"https://api.github.com/users/aherlihy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aherlihy/subscriptions","organizations_url":"https://api.github.com/users/aherlihy/orgs","repos_url":"https://api.github.com/users/aherlihy/repos","events_url":"https://api.github.com/users/aherlihy/events{/privacy}","received_events_url":"https://api.github.com/users/aherlihy/received_events","type":"User","site_admin":false},"repo":{"id":43448207,"name":"mongo-ruby-driver","full_name":"aherlihy/mongo-ruby-driver","owner":{"login":"aherlihy","id":1045019,"avatar_url":"https://avatars.githubusercontent.com/u/1045019?v=3","gravatar_id":"","url":"https://api.github.com/users/aherlihy","html_url":"https://github.com/aherlihy","followers_url":"https://api.github.com/users/aherlihy/followers","following_url":"https://api.github.com/users/aherlihy/following{/other_user}","gists_url":"https://api.github.com/users/aherlihy/gists{/gist_id}","starred_url":"https://api.github.com/users/aherlihy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aherlihy/subscriptions","organizations_url":"https://api.github.com/users/aherlihy/orgs","repos_url":"https://api.github.com/users/aherlihy/repos","events_url":"https://api.github.com/users/aherlihy/events{/privacy}","received_events_url":"https://api.github.com/users/aherlihy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aherlihy/mongo-ruby-driver","description":"Ruby driver for MongoDB","fork":true,"url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver","forks_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/forks","keys_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/teams","hooks_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/hooks","issue_events_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/issues/events{/number}","events_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/events","assignees_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/assignees{/user}","branches_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/branches{/branch}","tags_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/tags","blobs_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/languages","stargazers_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/stargazers","contributors_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/contributors","subscribers_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/subscribers","subscription_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/subscription","commits_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/contents/{+path}","compare_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/merges","archive_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/downloads","issues_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/issues{/number}","pulls_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/labels{/name}","releases_url":"https://api.github.com/repos/aherlihy/mongo-ruby-driver/releases{/id}","created_at":"2015-09-30T17:36:06Z","updated_at":"2015-09-30T17:36:16Z","pushed_at":"2015-10-06T19:06:37Z","git_url":"git://github.com/aherlihy/mongo-ruby-driver.git","ssh_url":"git@github.com:aherlihy/mongo-ruby-driver.git","clone_url":"https://github.com/aherlihy/mongo-ruby-driver.git","svn_url":"https://github.com/aherlihy/mongo-ruby-driver","homepage":"http://api.mongodb.org/ruby","size":31314,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mongodb:master","ref":"master","sha":"eab5c4a78c6117805b49a2db4e622710bdfb0f79","user":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"repo":{"id":108125,"name":"mongo-ruby-driver","full_name":"mongodb/mongo-ruby-driver","owner":{"login":"mongodb","id":45120,"avatar_url":"https://avatars.githubusercontent.com/u/45120?v=3","gravatar_id":"","url":"https://api.github.com/users/mongodb","html_url":"https://github.com/mongodb","followers_url":"https://api.github.com/users/mongodb/followers","following_url":"https://api.github.com/users/mongodb/following{/other_user}","gists_url":"https://api.github.com/users/mongodb/gists{/gist_id}","starred_url":"https://api.github.com/users/mongodb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongodb/subscriptions","organizations_url":"https://api.github.com/users/mongodb/orgs","repos_url":"https://api.github.com/users/mongodb/repos","events_url":"https://api.github.com/users/mongodb/events{/privacy}","received_events_url":"https://api.github.com/users/mongodb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongodb/mongo-ruby-driver","description":"Ruby driver for MongoDB","fork":false,"url":"https://api.github.com/repos/mongodb/mongo-ruby-driver","forks_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/forks","keys_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/teams","hooks_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/hooks","issue_events_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/events{/number}","events_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/events","assignees_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/assignees{/user}","branches_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/branches{/branch}","tags_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/tags","blobs_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/languages","stargazers_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/stargazers","contributors_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/contributors","subscribers_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/subscribers","subscription_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/subscription","commits_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/contents/{+path}","compare_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/merges","archive_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/downloads","issues_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues{/number}","pulls_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/labels{/name}","releases_url":"https://api.github.com/repos/mongodb/mongo-ruby-driver/releases{/id}","created_at":"2009-01-15T16:40:45Z","updated_at":"2015-10-01T07:52:05Z","pushed_at":"2015-10-06T19:07:36Z","git_url":"git://github.com/mongodb/mongo-ruby-driver.git","ssh_url":"git@github.com:mongodb/mongo-ruby-driver.git","clone_url":"https://github.com/mongodb/mongo-ruby-driver.git","svn_url":"https://github.com/mongodb/mongo-ruby-driver","homepage":"http://api.mongodb.org/ruby","size":38561,"stargazers_count":1196,"watchers_count":1196,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":374,"mirror_url":null,"open_issues_count":4,"forks":374,"open_issues":4,"watchers":1196,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/697"},"html":{"href":"https://github.com/mongodb/mongo-ruby-driver/pull/697"},"issue":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/697"},"comments":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/issues/697/comments"},"review_comments":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/697/comments"},"review_comment":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/pulls/697/commits"},"statuses":{"href":"https://api.github.com/repos/mongodb/mongo-ruby-driver/statuses/a98305dc79eabf47bc00320600a7edaf9572d059"}}}}