Sha256: 3156794d24c044f7b181fb861c222fdb4647fc70789216eb9f0fe9be085bc614

Contents?: true

Size: 446 Bytes

Versions: 18

Compression:

Stored size: 446 Bytes

Contents

require 'spec_helper'

describe LogStasher do
  it 'has a version' do
    expect(::LogStasher::VERSION).not_to be_nil
  end

  it 'has a logger' do
    expect(::LogStasher.logger).to be_a_kind_of(::Logger)
  end

  it 'stores a callback for appending fields' do
    callback = proc { |fields| fail 'Did not expect this to run'  }

    ::LogStasher.append_fields(&callback)
    expect(::LogStasher.append_fields_callback).to be callback
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
md-logstasher-1.8.0 spec/lib/logstasher_spec.rb
md-logstasher-1.7.0 spec/lib/logstasher_spec.rb
md-logstasher-1.6.0 spec/lib/logstasher_spec.rb
md-logstasher-1.5.0 spec/lib/logstasher_spec.rb
md-logstasher-1.4.1 spec/lib/logstasher_spec.rb
md-logstasher-1.4.0 spec/lib/logstasher_spec.rb
md-logstasher-1.3.0 spec/lib/logstasher_spec.rb
md-logstasher-1.2.0 spec/lib/logstasher_spec.rb
rv-logstasher-1.5.0 spec/lib/logstasher_spec.rb
rv-logstasher-1.4.0 spec/lib/logstasher_spec.rb
md-logstasher-1.1.0 spec/lib/logstasher_spec.rb
rv-logstasher-1.3.2 spec/lib/logstasher_spec.rb
rv-logstasher-1.3.1 spec/lib/logstasher_spec.rb
md-logstasher-1.0.5 spec/lib/logstasher_spec.rb
md-logstasher-1.0.4 spec/lib/logstasher_spec.rb
md-logstasher-1.0.3 spec/lib/logstasher_spec.rb
md-logstasher-1.0.2 spec/lib/logstasher_spec.rb
md-logstasher-1.0.1 spec/lib/logstasher_spec.rb