Sha256: 01b99a9ec283cfe13c4f37556c643a4955646344b3f35c4890a55a2fb628907d

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

require 'spec_helper'

class Logit
  include Endeca::Logging
end

describe Endeca::Logging do
  before do
    @logit = Logit.new
  end

  describe '.log' do
    it 'calls endeca logger' do
      logger = mock('logger')
      Endeca.should_receive(:debug?).and_return(true)
      Endeca.should_receive(:logger).and_return(logger)

      logger.should_receive(:debug).with('hiya')

      @logit.log('hiya')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
endeca-1.5.3 spec/endeca/logging_spec.rb
endeca-1.5.2 spec/endeca/logging_spec.rb
endeca-1.5.1 spec/endeca/logging_spec.rb
endeca-1.5.0 spec/endeca/logging_spec.rb