Sha256: ff15bd8194b407ee49b5c9c2d7165b93a1e88feeceff858e587401a9921b7467

Contents?: true

Size: 435 Bytes

Versions: 9

Compression:

Stored size: 435 Bytes

Contents

require 'spec_helper'
require 'magic_grid/logger'

describe MagicGrid do
  it "should user the specified logger" do
    logger = double.tap do |l|
      l.should_receive(:debug)
      l.should_receive(:warn)
      l.should_receive(:error)
    end
    MagicGrid.logger = logger
    MagicGrid.logger.warn "Something is afoot"
    MagicGrid.logger.error "Something is really wrong"
    MagicGrid.logger.debug "Something is foo"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
magic_grid-0.12.6 spec/logger_spec.rb
magic_grid-0.12.5 spec/logger_spec.rb
magic_grid-0.12.4 spec/logger_spec.rb
magic_grid-0.12.3 spec/logger_spec.rb
magic_grid-0.12.2 spec/logger_spec.rb
magic_grid-0.12.1 spec/logger_spec.rb
magic_grid-0.12.0 spec/logger_spec.rb
magic_grid-0.11.1 spec/logger_spec.rb
magic_grid-0.11.0 spec/logger_spec.rb