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.5.3 spec/lib/loggers/concise_spec.rb
picky-4.5.2 spec/lib/loggers/concise_spec.rb
picky-4.5.1 spec/lib/loggers/concise_spec.rb
picky-4.5.0 spec/lib/loggers/concise_spec.rb
picky-4.4.2 spec/lib/loggers/concise_spec.rb
picky-4.4.1 spec/lib/loggers/concise_spec.rb
picky-4.4.0 spec/lib/loggers/concise_spec.rb
picky-4.3.2 spec/lib/loggers/concise_spec.rb
picky-4.3.1 spec/lib/loggers/concise_spec.rb
picky-4.3.0 spec/lib/loggers/concise_spec.rb
picky-4.2.4 spec/lib/loggers/concise_spec.rb
picky-4.2.3 spec/lib/loggers/concise_spec.rb
picky-4.2.2 spec/lib/loggers/concise_spec.rb
picky-4.2.1 spec/lib/loggers/concise_spec.rb
picky-4.2.0 spec/lib/loggers/concise_spec.rb