Sha256: 7668bf29d5a3442425f85e8d6155e6ceaa9ce5e54755cb294d1ed310f1ec6b20

Contents?: true

Size: 337 Bytes

Versions: 34

Compression:

Stored size: 337 Bytes

Contents

require 'spec_helper'

describe Lumberjack::Formatter::StringFormatter do

  it "should format objects as string by calling their to_s method" do
    formatter = Lumberjack::Formatter::StringFormatter.new
    formatter.call("abc").should == "abc"
    formatter.call(:test).should == "test"
    formatter.call(1).should == "1"
  end

end

Version data entries

34 entries across 32 versions & 10 rubygems

Version Path
lumberjack-1.0.9 spec/formatter/string_formatter_spec.rb
lumberjack-1.0.8 spec/formatter/string_formatter_spec.rb
lumberjack-1.0.7 spec/formatter/string_formatter_spec.rb
lumberjack-1.0.6 spec/formatter/string_formatter_spec.rb
lumberjack-1.0.5 spec/formatter/string_formatter_spec.rb
lumberjack_aziz_light-1.0.6 spec/formatter/string_formatter_spec.rb
lumberjack_aziz_light-1.0.5 spec/formatter/string_formatter_spec.rb
lumberjack-1.0.4 spec/formatter/string_formatter_spec.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/formatter/string_formatter_spec.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/lumberjack-1.0.3/spec/formatter/string_formatter_spec.rb
lumberjack-1.0.3 spec/formatter/string_formatter_spec.rb
lumberjack-1.0.2 spec/formatter/string_formatter_spec.rb
lumberjack-1.0.1 spec/formatter/string_formatter_spec.rb
lumberjack-1.0.0 spec/formatter/string_formatter_spec.rb