Sha256: bce7ce5ceef6521f06fcb7a259d940f07bf5772eb38347f2c9fe331ae659bed6

Contents?: true

Size: 529 Bytes

Versions: 7

Compression:

Stored size: 529 Bytes

Contents

# -*- ruby -*-
# vim: set nosta noet ts=4 sw=4:
# frozen_string_literal: true

require_relative '../helpers'

require 'loggability/loghost'


describe Loggability::LogHost do


	let( :class_with_loggability ) do
		Class.new { extend Loggability; log_as :loghost_specs }
	end


	it "makes subclasses log clients of itself" do
		subclass = Class.new( class_with_loggability )
		expect( subclass.log ).to be_a( Loggability::Logger::ObjectNameProxy )
		expect( subclass.log.logger ).to eq( class_with_loggability.logger )
	end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
loggability-0.18.2 spec/loggability/loghost_spec.rb
loggability-0.18.1 spec/loggability/loghost_spec.rb
loggability-0.18.0 spec/loggability/loghost_spec.rb
loggability-0.17.0 spec/loggability/loghost_spec.rb
loggability-0.16.0 spec/loggability/loghost_spec.rb
loggability-0.15.1 spec/loggability/loghost_spec.rb
loggability-0.15.0.pre20190714094638 spec/loggability/loghost_spec.rb