Sha256: 96e5d199a808d62f1149e0b77e04ff5500b79c5e68a4e6d9b04ab917b8bce8d5

Contents?: true

Size: 434 Bytes

Versions: 9

Compression:

Stored size: 434 Bytes

Contents

require 'spec_helper'

describe Rearview::LogFormatter do
  let(:formatter) { Rearview::LogFormatter.new }
  context '#call' do
    it "includes the thread name" do
      expect(formatter.call("DEBUG",Time.now.utc,"Rearview","yo")).to match(/#\d+\/main]/)
    end
    it "includes Rearview as the progname if none is provided" do
      expect(formatter.call("DEBUG",Time.now.utc,nil,"yo")).to match(/Rearview: yo$/)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rearview-1.2.3-jruby spec/lib/rearview/log_formatter_spec.rb
rearview-1.2.2.rc.2-jruby spec/lib/rearview/log_formatter_spec.rb
rearview-1.2.2.rc.1-jruby spec/lib/rearview/log_formatter_spec.rb
rearview-1.2.1-jruby spec/lib/rearview/log_formatter_spec.rb
rearview-1.2.0-jruby spec/lib/rearview/log_formatter_spec.rb
rearview-1.1.2-jruby spec/lib/rearview/log_formatter_spec.rb
rearview-1.1.1-jruby spec/lib/rearview/log_formatter_spec.rb
rearview-1.1.0-jruby spec/lib/rearview/log_formatter_spec.rb
rearview-1.0.3.rc.4-jruby spec/lib/rearview/log_formatter_spec.rb