Skip to content

Commit

Permalink
disable mongod logging
Browse files Browse the repository at this point in the history
  • Loading branch information
EppO committed Oct 23, 2015
1 parent cc3a266 commit 1cb414a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rolify/shared_contexts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
subject { admin }

def admin
user_class.first
user_class.where(:login => "admin").first
end

before(:all) do
Expand Down
2 changes: 2 additions & 0 deletions spec/support/adapters/mongoid.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require 'mongoid'

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

::Mongoid::Document.module_eval do
def self.included(base)
Expand Down

0 comments on commit 1cb414a

Please sign in to comment.