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
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/lumberjack-1.0.13/spec/formatter/pretty_print_formatter_spec.rb
alimentos-alu0100945645-0.1.0 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.13/spec/formatter/pretty_print_formatter_spec.rb
alimentos-alu0100945645-1.0.0 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.13/spec/formatter/pretty_print_formatter_spec.rb
lumberjack-1.0.13 spec/formatter/pretty_print_formatter_spec.rb
comiditaULL-0.1.1 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.12/spec/formatter/pretty_print_formatter_spec.rb
comidita_ull-0.1.1 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.12/spec/formatter/pretty_print_formatter_spec.rb
comidita_ull-0.1.0 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.12/spec/formatter/pretty_print_formatter_spec.rb
lumberjack-1.0.12 spec/formatter/pretty_print_formatter_spec.rb
lumberjack-1.0.11 spec/formatter/pretty_print_formatter_spec.rb
gameboard-3.1.0 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.10/spec/formatter/pretty_print_formatter_spec.rb
gameboard-3.0.0 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.10/spec/formatter/pretty_print_formatter_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/lumberjack-1.0.9/spec/formatter/pretty_print_formatter_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/lumberjack-1.0.9/spec/formatter/pretty_print_formatter_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/lumberjack-1.0.9/spec/formatter/pretty_print_formatter_spec.rb
lumberjack-1.0.10 spec/formatter/pretty_print_formatter_spec.rb
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/lumberjack-1.0.9/spec/formatter/pretty_print_formatter_spec.rb
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/lumberjack-1.0.9/spec/formatter/pretty_print_formatter_spec.rb
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/lumberjack-1.0.9/spec/formatter/pretty_print_formatter_spec.rb
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/lumberjack-1.0.9/spec/formatter/pretty_print_formatter_spec.rb
geminfo-0.1.0 path/gems/lumberjack-1.0.9/spec/formatter/pretty_print_formatter_spec.rb