Skip to content
Browse files

Use UTC for Mongoid timestamps, so it conforms with AR.

  • Loading branch information...
1 parent a582d4d commit 112f49993701d75e946d5232bf69d970c3e62b74 @carlosantoniodasilva carlosantoniodasilva committed Nov 26, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/orm/mongoid.rb
View
5 test/orm/mongoid.rb
@@ -1,10 +1,11 @@
Mongoid.configure do |config|
- config.master = Mongo::Connection.new('127.0.0.1', 27017).db("devise-test-suite")
+ config.master = Mongo::Connection.new('127.0.0.1', 27017).db("devise-test-suite")
+ config.use_utc = true
end
class ActiveSupport::TestCase
setup do
User.delete_all
Admin.delete_all
end
-end
+end

0 comments on commit 112f499

Please sign in to comment.
Something went wrong with that request. Please try again.