test/models/models.rb in mongoid-minitest-1.0.0 vs test/models/models.rb in mongoid-minitest-1.1.0
- old
+ new
@@ -1,8 +1,8 @@
class Person
include Mongoid::Document
include Mongoid::Timestamps
- unless Mongoid::VERSION == '4.0.0'
+ unless Mongoid::VERSION.to_i >= 4
include Mongoid::Paranoia
include Mongoid::Versioning
end
field :login, type: String, default: 'me'