Sha256: 7a2ed91ce66ca1fc0a98a4d650e2d6e8ffb3c2e3cc2744a118cdc9c1d6e3cb4c

Contents?: true

Size: 654 Bytes

Versions: 35

Compression:

Stored size: 654 Bytes

Contents

require 'spec_helper'

describe Picky::Loggers::Silent 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 == ''
    end
  end

end

Version data entries

35 entries across 35 versions & 1 rubygems

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