spec/models/log.rb in mongoid-rspec-3.0.0 vs spec/models/log.rb in mongoid-rspec-4.0.0
- old
+ new
@@ -1,9 +1,9 @@
class Log
include Mongoid::Document
include Mongoid::Timestamps
- include Mongoid::Attributes::Dynamic
+ include Mongoid::Attributes::Dynamic if Mongoid::Compatibility::Version.mongoid4_or_newer?
- store_in collection: "logs"
+ store_in collection: 'logs'
- index({ created_at: 1 }, { bucket_size: 100, expire_after_seconds: 3600 } )
+ index({ created_at: 1 }, bucket_size: 100, expire_after_seconds: 3600)
end