Sha256: 8998fdeb5962771127f4ee4c4d264a07fa856b09bdfe9f75eacabcdaa4aa1f30

Contents?: true

Size: 334 Bytes

Versions: 10

Compression:

Stored size: 334 Bytes

Contents

require 'helper'

describe Toy::Logger do
  uses_objects('User')

  before do
    @logger = Toy.logger
  end

  after do
    Toy.logger = @logger
  end

  it "should use Toy.logger for class" do
    User.logger.should == Toy.logger
  end

  it "should use Toy.logger for instance" do
    User.new.logger.should == Toy.logger
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
toystore-0.13.1 spec/toy/logger_spec.rb
toystore-0.13.0 spec/toy/logger_spec.rb
toystore-0.12.0 spec/toy/logger_spec.rb
toystore-0.11.0 spec/toy/logger_spec.rb
toystore-0.10.4 spec/toy/logger_spec.rb
toystore-0.10.3 spec/toy/logger_spec.rb
toystore-0.10.2 spec/toy/logger_spec.rb
toystore-0.10.1 spec/toy/logger_spec.rb
toystore-0.10.0 spec/toy/logger_spec.rb
toystore-0.9.0 spec/toy/logger_spec.rb