Sha256: ee6130021074f1bb58253f037eecb3b84e6ed2f8c7672cbf454fc5595e5b91b7

Contents?: true

Size: 693 Bytes

Versions: 35

Compression:

Stored size: 693 Bytes

Contents

require 'spec_helper'

describe Picky::Loggers::Concise do
  
  let(:io) { StringIO.new }
  let(:logger) { described_class.new io }

  describe 'more complicated test case' do
    it 'is correct' do
      logger.info 'Tokenizing '
      logger.tokenize :some_category
      logger.tokenize :some_category
      logger.tokenize :some_category
      logger.info ' Dumping '
      logger.dump :some_category
      logger.dump :some_category
      logger.info ' Loading '
      logger.load :some_category
      logger.load :some_category
      logger.load :some_category
      logger.load :some_category
      
      io.string.should == 'Tokenizing TTT Dumping DD Loading ....'
    end
  end

end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
picky-4.9.0 spec/lib/loggers/concise_spec.rb
picky-4.8.1 spec/lib/loggers/concise_spec.rb
picky-4.8.0 spec/lib/loggers/concise_spec.rb
picky-4.7.0 spec/lib/loggers/concise_spec.rb
picky-4.6.6 spec/lib/loggers/concise_spec.rb
picky-4.6.5 spec/lib/loggers/concise_spec.rb
picky-4.6.4 spec/lib/loggers/concise_spec.rb
picky-4.6.3 spec/lib/loggers/concise_spec.rb
picky-4.6.2 spec/lib/loggers/concise_spec.rb
picky-4.6.1 spec/lib/loggers/concise_spec.rb
picky-4.6.0 spec/lib/loggers/concise_spec.rb
picky-4.5.12 spec/lib/loggers/concise_spec.rb
picky-4.5.11 spec/lib/loggers/concise_spec.rb
picky-4.5.10 spec/lib/loggers/concise_spec.rb
picky-4.5.9 spec/lib/loggers/concise_spec.rb
picky-4.5.8 spec/lib/loggers/concise_spec.rb
picky-4.5.7 spec/lib/loggers/concise_spec.rb
picky-4.5.6 spec/lib/loggers/concise_spec.rb
picky-4.5.5 spec/lib/loggers/concise_spec.rb
picky-4.5.4 spec/lib/loggers/concise_spec.rb