Sha256: 44990411c9eb9661d29cb16ed4324976e4fa5cec3ee41f8425732ec555216e6b

Contents?: true

Size: 357 Bytes

Versions: 11

Compression:

Stored size: 357 Bytes

Contents

require 'spec_helper'

describe Empezar::Log do 
  it 'should be a Singleton' do 
    Empezar::Log.ancestors.should include Singleton
  end

  describe '#instance' do 
    it 'should be as initialized in the start' do 
      logger_stub = stub 'logger'
      Empezar::Log.start logger_stub
      Empezar::Log.instance.should == logger_stub
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
empezar-0.4.1 spec/empezar/log_spec.rb
empezar-0.4.0 spec/empezar/log_spec.rb
empezar-0.3.1 spec/empezar/log_spec.rb
empezar-0.3.0 spec/empezar/log_spec.rb
empezar-0.2.0 spec/empezar/log_spec.rb
empezar-0.1.3 spec/empezar/log_spec.rb
empezar-0.1.2 spec/empezar/log_spec.rb
empezar-0.1.1 spec/empezar/log_spec.rb
empezar-0.1.0 spec/empezar/log_spec.rb
empezar-0.0.2 spec/empezar/log_spec.rb
empezar-0.0.1 spec/empezar/log_spec.rb