Sha256: 4099e7a09169c9d13971429205623511f743a4194c9dd5892e703f861e8860ea

Contents?: true

Size: 350 Bytes

Versions: 34

Compression:

Stored size: 350 Bytes

Contents

require 'spec_helper'

describe Lumberjack::Formatter::PrettyPrintFormatter do

  it "should convert an object to a string using pretty print" do
    object = Object.new
    def object.pretty_print(q)
      q.text "woot!"
    end
    formatter = Lumberjack::Formatter::PrettyPrintFormatter.new
    formatter.call(object).should == "woot!"
  end

end

Version data entries

34 entries across 32 versions & 10 rubygems

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