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