From e8d0284fc0b28a41c0e1915901112327b71dfced Mon Sep 17 00:00:00 2001 From: Mitch Williams Date: Fri, 27 Apr 2012 13:28:03 -0700 Subject: [PATCH 1/2] Set the mongo logger level to INFO to stop it from spraying debug output all over the test results --- spec/support/mongoid_backend.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/support/mongoid_backend.rb b/spec/support/mongoid_backend.rb index 1c8d8b9..ac89665 100644 --- a/spec/support/mongoid_backend.rb +++ b/spec/support/mongoid_backend.rb @@ -18,6 +18,7 @@ def self.authenticate_with_username_and_password(username, password) config.resource_owner_class_name = 'ExampleResourceOwner' end +Mongoid.logger.level = Logger::INFO Mongoid.configure do |config| config.from_hash( "host" => "127.0.0.1", @@ -29,6 +30,7 @@ def self.authenticate_with_username_and_password(username, password) "raise_not_found_error" => true, "reconnect_time" => 3, "use_activesupport_time_zone" => true, - "database" => "oauth2_test" + "database" => "oauth2_test", ) -end \ No newline at end of file +end + From c37de1e864cd87aa3548d4ae4b696c737aeffc86 Mon Sep 17 00:00:00 2001 From: Mitch Williams Date: Fri, 27 Apr 2012 13:28:49 -0700 Subject: [PATCH 2/2] Removed extra comma --- spec/support/mongoid_backend.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/support/mongoid_backend.rb b/spec/support/mongoid_backend.rb index ac89665..5b3f442 100644 --- a/spec/support/mongoid_backend.rb +++ b/spec/support/mongoid_backend.rb @@ -30,7 +30,7 @@ def self.authenticate_with_username_and_password(username, password) "raise_not_found_error" => true, "reconnect_time" => 3, "use_activesupport_time_zone" => true, - "database" => "oauth2_test", + "database" => "oauth2_test" ) end