Sha256: c611f908f44cc9da770ae85ec31c5615be06274d9457fb6d77c6bc94794e26a2

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

require "spec_helper"

describe Mongoid::Loggable do

  describe "#logger=" do

    let(:logger) do
      Logger.new($stdout).tap do |log|
        log.level = Logger::INFO
      end
    end

    before do
      Mongoid.logger = logger
    end

    it "sets the logger" do
      Mongoid.logger.should eq(logger)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-3.1.7 spec/mongoid/loggable_spec.rb
mongoid-3.1.6 spec/mongoid/loggable_spec.rb
mongoid-3.1.5 spec/mongoid/loggable_spec.rb