Sha256: 8a5488d2d8fcce5f23b4ca4b90e2671146a32172e42e9f4dfd160a48d9be9af5

Contents?: true

Size: 478 Bytes

Versions: 6

Compression:

Stored size: 478 Bytes

Contents

require 'spec_helper'

describe "Logger" do
  context "with connection that has logger" do
    before do
      @output = StringIO.new
      @logger = Logger.new(@output)
      MarkLogic.logger = @logger
    end

    it "should be able to get access to that logger" do
      MarkMapper.logger.should == @logger
    end

    it "should be able to log messages" do
      MarkMapper.logger.debug 'testing'
      @output.string.include?('testing').should be_truthy
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mark_mapper-0.0.6 spec/functional/logger_spec.rb
mark_mapper-0.0.5 spec/functional/logger_spec.rb
mark_mapper-0.0.4 spec/functional/logger_spec.rb
mark_mapper-0.0.3 spec/functional/logger_spec.rb
mark_mapper-0.0.2 spec/functional/logger_spec.rb
mark_mapper-0.0.1 spec/functional/logger_spec.rb