test/test_helper.rb in unread-mongoid-0.0.5 vs test/test_helper.rb in unread-mongoid-0.1.0
- old
+ new
@@ -5,11 +5,11 @@
ENV['MONGOID_ENV'] = 'test'
Mongoid.load!(File.dirname(__FILE__) + '/mongoid.yml')
require 'unread_mongoid'
-class Reader
+class User
include Mongoid::Document
include UnreadMongoid
acts_as_reader
@@ -20,10 +20,10 @@
include Mongoid::Document
include Mongoid::Timestamps
include UnreadMongoid
- acts_as_readable :on => :updated_at
+ acts_as_readable
field :subject, type: String
field :content, type: String
end