{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/comments/41355255","id":41355255,"diff_hunk":"@@ -412,6 +412,12 @@ def validate_case_sensitivity?\n             if @options[:case_insensitive]\n               disallows_value_of(swapcased_value, @expected_message)\n             else\n+              if value == swapcased_value\n+                raise ActiveModel::CouldNotValidateCaseError.create(\n+                  existing_record,\n+                  @attribute","path":"lib/shoulda/matchers/active_record/validate_uniqueness_of_matcher.rb","position":7,"original_position":7,"commit_id":"334f8b15b1550f003f55fcba37ddf7246f955a62","original_commit_id":"334f8b15b1550f003f55fcba37ddf7246f955a62","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":"Put a comma after the last parameter of a multiline method call.","created_at":"2015-10-07T06:25:30Z","updated_at":"2015-10-07T06:25:30Z","html_url":"https://github.com/thoughtbot/shoulda-matchers/pull/789#discussion_r41355255","pull_request_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/789","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/comments/41355255"},"html":{"href":"https://github.com/thoughtbot/shoulda-matchers/pull/789#discussion_r41355255"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/789"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/789","id":46723429,"html_url":"https://github.com/thoughtbot/shoulda-matchers/pull/789","diff_url":"https://github.com/thoughtbot/shoulda-matchers/pull/789.diff","patch_url":"https://github.com/thoughtbot/shoulda-matchers/pull/789.patch","issue_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/789","number":789,"state":"open","locked":false,"title":"Fix checking case sensitivity when value is case insensitive","user":{"login":"albertyw","id":3151040,"avatar_url":"https://avatars.githubusercontent.com/u/3151040?v=3","gravatar_id":"","url":"https://api.github.com/users/albertyw","html_url":"https://github.com/albertyw","followers_url":"https://api.github.com/users/albertyw/followers","following_url":"https://api.github.com/users/albertyw/following{/other_user}","gists_url":"https://api.github.com/users/albertyw/gists{/gist_id}","starred_url":"https://api.github.com/users/albertyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertyw/subscriptions","organizations_url":"https://api.github.com/users/albertyw/orgs","repos_url":"https://api.github.com/users/albertyw/repos","events_url":"https://api.github.com/users/albertyw/events{/privacy}","received_events_url":"https://api.github.com/users/albertyw/received_events","type":"User","site_admin":false},"body":"I ran into the same issue as https://github.com/thoughtbot/shoulda-matchers/issues/787 and fixed it here.  ","created_at":"2015-10-04T11:12:11Z","updated_at":"2015-10-07T06:25:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9586c256497b8fca13a6947e5f4895003106cd44","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/789/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/789/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/789/comments","statuses_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/statuses/334f8b15b1550f003f55fcba37ddf7246f955a62","head":{"label":"albertyw:fix-case-checking","ref":"fix-case-checking","sha":"334f8b15b1550f003f55fcba37ddf7246f955a62","user":{"login":"albertyw","id":3151040,"avatar_url":"https://avatars.githubusercontent.com/u/3151040?v=3","gravatar_id":"","url":"https://api.github.com/users/albertyw","html_url":"https://github.com/albertyw","followers_url":"https://api.github.com/users/albertyw/followers","following_url":"https://api.github.com/users/albertyw/following{/other_user}","gists_url":"https://api.github.com/users/albertyw/gists{/gist_id}","starred_url":"https://api.github.com/users/albertyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertyw/subscriptions","organizations_url":"https://api.github.com/users/albertyw/orgs","repos_url":"https://api.github.com/users/albertyw/repos","events_url":"https://api.github.com/users/albertyw/events{/privacy}","received_events_url":"https://api.github.com/users/albertyw/received_events","type":"User","site_admin":false},"repo":{"id":43631073,"name":"shoulda-matchers","full_name":"albertyw/shoulda-matchers","owner":{"login":"albertyw","id":3151040,"avatar_url":"https://avatars.githubusercontent.com/u/3151040?v=3","gravatar_id":"","url":"https://api.github.com/users/albertyw","html_url":"https://github.com/albertyw","followers_url":"https://api.github.com/users/albertyw/followers","following_url":"https://api.github.com/users/albertyw/following{/other_user}","gists_url":"https://api.github.com/users/albertyw/gists{/gist_id}","starred_url":"https://api.github.com/users/albertyw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertyw/subscriptions","organizations_url":"https://api.github.com/users/albertyw/orgs","repos_url":"https://api.github.com/users/albertyw/repos","events_url":"https://api.github.com/users/albertyw/events{/privacy}","received_events_url":"https://api.github.com/users/albertyw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/albertyw/shoulda-matchers","description":"Collection of testing matchers extracted from Shoulda","fork":true,"url":"https://api.github.com/repos/albertyw/shoulda-matchers","forks_url":"https://api.github.com/repos/albertyw/shoulda-matchers/forks","keys_url":"https://api.github.com/repos/albertyw/shoulda-matchers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/albertyw/shoulda-matchers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/albertyw/shoulda-matchers/teams","hooks_url":"https://api.github.com/repos/albertyw/shoulda-matchers/hooks","issue_events_url":"https://api.github.com/repos/albertyw/shoulda-matchers/issues/events{/number}","events_url":"https://api.github.com/repos/albertyw/shoulda-matchers/events","assignees_url":"https://api.github.com/repos/albertyw/shoulda-matchers/assignees{/user}","branches_url":"https://api.github.com/repos/albertyw/shoulda-matchers/branches{/branch}","tags_url":"https://api.github.com/repos/albertyw/shoulda-matchers/tags","blobs_url":"https://api.github.com/repos/albertyw/shoulda-matchers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/albertyw/shoulda-matchers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/albertyw/shoulda-matchers/git/refs{/sha}","trees_url":"https://api.github.com/repos/albertyw/shoulda-matchers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/albertyw/shoulda-matchers/statuses/{sha}","languages_url":"https://api.github.com/repos/albertyw/shoulda-matchers/languages","stargazers_url":"https://api.github.com/repos/albertyw/shoulda-matchers/stargazers","contributors_url":"https://api.github.com/repos/albertyw/shoulda-matchers/contributors","subscribers_url":"https://api.github.com/repos/albertyw/shoulda-matchers/subscribers","subscription_url":"https://api.github.com/repos/albertyw/shoulda-matchers/subscription","commits_url":"https://api.github.com/repos/albertyw/shoulda-matchers/commits{/sha}","git_commits_url":"https://api.github.com/repos/albertyw/shoulda-matchers/git/commits{/sha}","comments_url":"https://api.github.com/repos/albertyw/shoulda-matchers/comments{/number}","issue_comment_url":"https://api.github.com/repos/albertyw/shoulda-matchers/issues/comments{/number}","contents_url":"https://api.github.com/repos/albertyw/shoulda-matchers/contents/{+path}","compare_url":"https://api.github.com/repos/albertyw/shoulda-matchers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/albertyw/shoulda-matchers/merges","archive_url":"https://api.github.com/repos/albertyw/shoulda-matchers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/albertyw/shoulda-matchers/downloads","issues_url":"https://api.github.com/repos/albertyw/shoulda-matchers/issues{/number}","pulls_url":"https://api.github.com/repos/albertyw/shoulda-matchers/pulls{/number}","milestones_url":"https://api.github.com/repos/albertyw/shoulda-matchers/milestones{/number}","notifications_url":"https://api.github.com/repos/albertyw/shoulda-matchers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/albertyw/shoulda-matchers/labels{/name}","releases_url":"https://api.github.com/repos/albertyw/shoulda-matchers/releases{/id}","created_at":"2015-10-04T09:20:08Z","updated_at":"2015-10-04T09:20:10Z","pushed_at":"2015-10-07T06:25:22Z","git_url":"git://github.com/albertyw/shoulda-matchers.git","ssh_url":"git@github.com:albertyw/shoulda-matchers.git","clone_url":"https://github.com/albertyw/shoulda-matchers.git","svn_url":"https://github.com/albertyw/shoulda-matchers","homepage":"http://matchers.shoulda.io","size":12994,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thoughtbot:master","ref":"master","sha":"125ba3ed015a1bb0321f00521df9147b18d338a8","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":1172597,"name":"shoulda-matchers","full_name":"thoughtbot/shoulda-matchers","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/shoulda-matchers","description":"Collection of testing matchers extracted from Shoulda","fork":false,"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers","forks_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/forks","keys_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/teams","hooks_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/events","assignees_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/tags","blobs_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/subscription","commits_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/merges","archive_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/downloads","issues_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/releases{/id}","created_at":"2010-12-15T22:41:52Z","updated_at":"2015-10-04T21:58:41Z","pushed_at":"2015-10-07T06:25:22Z","git_url":"git://github.com/thoughtbot/shoulda-matchers.git","ssh_url":"git@github.com:thoughtbot/shoulda-matchers.git","clone_url":"https://github.com/thoughtbot/shoulda-matchers.git","svn_url":"https://github.com/thoughtbot/shoulda-matchers","homepage":"http://matchers.shoulda.io","size":18128,"stargazers_count":1371,"watchers_count":1371,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":386,"mirror_url":null,"open_issues_count":42,"forks":386,"open_issues":42,"watchers":1371,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/789"},"html":{"href":"https://github.com/thoughtbot/shoulda-matchers/pull/789"},"issue":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/789"},"comments":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/789/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/789/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/pulls/789/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/shoulda-matchers/statuses/334f8b15b1550f003f55fcba37ddf7246f955a62"}}}}