{"action":"created","issue":{"url":"https://api.github.com/repos/mongoid-rspec/mongoid-rspec/issues/134","labels_url":"https://api.github.com/repos/mongoid-rspec/mongoid-rspec/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/mongoid-rspec/mongoid-rspec/issues/134/comments","events_url":"https://api.github.com/repos/mongoid-rspec/mongoid-rspec/issues/134/events","html_url":"https://github.com/mongoid-rspec/mongoid-rspec/issues/134","id":47018452,"number":134,"title":"model doesn't respond to `has_fields?`","user":{"login":"doodzik","id":5946811,"avatar_url":"https://avatars.githubusercontent.com/u/5946811?v=3","gravatar_id":"","url":"https://api.github.com/users/doodzik","html_url":"https://github.com/doodzik","followers_url":"https://api.github.com/users/doodzik/followers","following_url":"https://api.github.com/users/doodzik/following{/other_user}","gists_url":"https://api.github.com/users/doodzik/gists{/gist_id}","starred_url":"https://api.github.com/users/doodzik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doodzik/subscriptions","organizations_url":"https://api.github.com/users/doodzik/orgs","repos_url":"https://api.github.com/users/doodzik/repos","events_url":"https://api.github.com/users/doodzik/events{/privacy}","received_events_url":"https://api.github.com/users/doodzik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-28T12:08:43Z","updated_at":"2015-01-06T17:09:39Z","closed_at":null,"body":"When i comment ```, type: :model``` out it works as expected\r\n```ruby\r\nRSpec.configure do |config|\r\n  config.include Mongoid::Matchers#, type: :model\r\nend\r\n```\r\n\r\nmy setup is something like this:\r\n```ruby\r\nrequire 'rspec'\r\nrequire_relative '../loadpath'\r\nrequire 'environment'\r\n\r\nrequire 'mongoid'\r\nrequire 'mongoid-rspec'\r\n\r\nRSpec.configure do |config|\r\n  config.include Mongoid::Matchers#, type: :model\r\nend\r\n\r\nclass User\r\n    include Mongoid::Document\r\n    field :name\r\n    field :email\r\nend\r\n\r\ndescribe User do\r\n it { should have_fields(:email, :name) }\r\nend\r\n```\r\n\r\n```ruby\r\ngem 'mongoid', \"~> 4.0.0\"\r\ngem 'mongoid-rspec', '~> 2.0.0.rc1'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mongoid-rspec/mongoid-rspec/issues/comments/68895654","html_url":"https://github.com/mongoid-rspec/mongoid-rspec/issues/134#issuecomment-68895654","issue_url":"https://api.github.com/repos/mongoid-rspec/mongoid-rspec/issues/134","id":68895654,"user":{"login":"doodzik","id":5946811,"avatar_url":"https://avatars.githubusercontent.com/u/5946811?v=3","gravatar_id":"","url":"https://api.github.com/users/doodzik","html_url":"https://github.com/doodzik","followers_url":"https://api.github.com/users/doodzik/followers","following_url":"https://api.github.com/users/doodzik/following{/other_user}","gists_url":"https://api.github.com/users/doodzik/gists{/gist_id}","starred_url":"https://api.github.com/users/doodzik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doodzik/subscriptions","organizations_url":"https://api.github.com/users/doodzik/orgs","repos_url":"https://api.github.com/users/doodzik/repos","events_url":"https://api.github.com/users/doodzik/events{/privacy}","received_events_url":"https://api.github.com/users/doodzik/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T17:09:39Z","updated_at":"2015-01-06T17:09:39Z","body":"I've updated  mongoid-rspec and the problem still occurs :(\r\n\r\nall the specs fail with undefined method $matcher\r\n\r\nexample:\r\n```\r\n     Failure/Error: it { should validate_presence_of(:email) }\r\n     NoMethodError:\r\n       undefined method `validate_presence_of' for #<RSpec::ExampleGroups::User:0x007f9edeb2c698>\r\n```\r\n"}}