Sha256: 8ea6ec96c735fb42dcaefd61140c42f249441f9c47a791b525d0e8ca356d82c4
Contents?: true
Size: 477 Bytes
Versions: 3
Compression:
Stored size: 477 Bytes
Contents
#!/usr/bin/env rspec -cfd 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loggability-0.14.0 | spec/loggability/loghost_spec.rb |
loggability-0.13.0 | spec/loggability/loghost_spec.rb |
loggability-0.12.0 | spec/loggability/loghost_spec.rb |