Sha256: 7fd99442aa60630d75b9b1a3d09fa3b94c2fc37cb345c445d63c7c3386b376a2
Contents?: true
Size: 540 Bytes
Versions: 2
Compression:
Stored size: 540 Bytes
Contents
require 'spec_helper' describe "Logger" do context "with connection that has logger" do before do @output = StringIO.new @logger = Logger.new(@output) MongoMapper.connection = Mongo::MongoClient.new('127.0.0.1', 27017, :logger => @logger) end it "should be able to get access to that logger" do MongoMapper.logger.should == @logger end it "should be able to log messages" do MongoMapper.logger.debug 'testing' @output.string.include?('testing').should be_truthy end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongo_mapper-0.14.0 | spec/functional/logger_spec.rb |
mongo_mapper-0.14.0.rc1 | spec/functional/logger_spec.rb |