{"action":"closed","issue":{"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/679","labels_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/679/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/679/comments","events_url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/issues/679/events","html_url":"https://github.com/thoughtbot/shoulda-matchers/issues/679","id":60221119,"number":679,"title":"validate_uniqueness_of no longer works in 2.8.0","user":{"login":"doughsay","id":221693,"avatar_url":"https://avatars.githubusercontent.com/u/221693?v=3","gravatar_id":"","url":"https://api.github.com/users/doughsay","html_url":"https://github.com/doughsay","followers_url":"https://api.github.com/users/doughsay/followers","following_url":"https://api.github.com/users/doughsay/following{/other_user}","gists_url":"https://api.github.com/users/doughsay/gists{/gist_id}","starred_url":"https://api.github.com/users/doughsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doughsay/subscriptions","organizations_url":"https://api.github.com/users/doughsay/orgs","repos_url":"https://api.github.com/users/doughsay/repos","events_url":"https://api.github.com/users/doughsay/events{/privacy}","received_events_url":"https://api.github.com/users/doughsay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thoughtbot/shoulda-matchers/labels/Need%20to%20Investigate","name":"Need to Investigate","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-03-07T19:40:36Z","updated_at":"2015-08-01T05:21:45Z","closed_at":"2015-08-01T05:21:45Z","body":"A test for `validate_uniqueness_of` fails with `undefined method 'validate_uniqueness_of' for #<RSpec::ExampleGroups::User:0x007ff055b73db8>`.\r\n\r\nReverting back to 2.7.0 causes it to work.\r\n\r\nThe relevant parts of my spec are:\r\n\r\n```ruby\r\nrequire 'rails_helper'\r\n\r\nRSpec.describe User, :type => :model do\r\n  let(:user) { create(:user) }\r\n  subject { user }\r\n\r\n  describe '#save' do\r\n    it { is_expected.to validate_uniqueness_of(:email).case_insensitive }\r\n  end\r\nend\r\n```"}}