spec/spec_helper.rb in mongoid_token-1.1.1 vs spec/spec_helper.rb in mongoid_token-2.0.0
- old
+ new
@@ -2,12 +2,16 @@
require 'database_cleaner'
require 'mongoid'
require 'mongoid-rspec'
require 'mongoid_token'
-require 'mongoid/token/exceptions'
ENV['MONGOID_ENV'] = "test"
+
+class Document
+ include Mongoid::Document
+ include Mongoid::Token
+end
RSpec.configure do |config|
config.include Mongoid::Matchers
config.before(:suite) do
DatabaseCleaner.strategy = :truncation