Sha256: 3aaf4933c22d7fe80f7e1d7ff0cea8cf9de31fdbda544976f45b22d5f826d3b2

Contents?: true

Size: 467 Bytes

Versions: 5

Compression:

Stored size: 467 Bytes

Contents

# -*- rspec -*-
#encoding: utf-8

require 'rspec'

require 'loggability/logger'
require 'loggability/log_device/appending'


describe Loggability::LogDevice::Appending do

	let ( :logger ) { described_class.new( [] ) }


	it "The target is an array" do
		expect( logger.target ).to be_instance_of( Array )
	end


	it "can append to the array" do
		logger.write("log message one")
		logger.write("log message two")
		expect( logger.target.size ).to eq( 2 )
	end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
loggability-0.18.2 spec/loggability/log_device/appending_spec.rb
loggability-0.18.1 spec/loggability/log_device/appending_spec.rb
loggability-0.18.0 spec/loggability/log_device/appending_spec.rb
loggability-0.17.0 spec/loggability/log_device/appending_spec.rb
loggability-0.16.0 spec/loggability/log_device/appending_spec.rb