Skip to content

Commit 1cb414a

Browse files
committed
disable mongod logging
1 parent cc3a266 commit 1cb414a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

spec/rolify/shared_contexts.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
subject { admin }
33

44
def admin
5-
user_class.first
5+
user_class.where(:login => "admin").first
66
end
77

88
before(:all) do

spec/support/adapters/mongoid.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
require 'mongoid'
22

33
Mongoid.load!("spec/support/adapters/mongoid.yml", :test)
4+
Mongoid.logger = ::Logger.new('/dev/null')
5+
Mongo::Logger.logger.level = Logger::INFO
46

57
::Mongoid::Document.module_eval do
68
def self.included(base)

0 commit comments

Comments
 (0)