Sha256: 4f7c8a64330ed209789aae39f9de7d015e225f30dd2c9be92acdb555e619e252

Contents?: true

Size: 338 Bytes

Versions: 11

Compression:

Stored size: 338 Bytes

Contents

require "spec_helper"

describe Fume::LoggerSupport do
  class TestLog
    include Fume::LoggerSupport
  end

  it "should be return rails logger" do
    Rails.logger = "Test"
    TestLog.logger.should be_eql "Test"
  end
  
  
  it "should be return STDOUT logger" do
    Rails.logger = nil
    TestLog.logger.should_not be_nil
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fume-0.5.3 spec/fume/logger_support_spec.rb
fume-0.5.2 spec/fume/logger_support_spec.rb
fume-0.5.1 spec/fume/logger_support_spec.rb
fume-0.5.0 spec/fume/logger_support_spec.rb
fume-0.4.3 spec/fume/logger_support_spec.rb
fume-0.4.2 spec/fume/logger_support_spec.rb
fume-0.4.1 spec/fume/logger_support_spec.rb
fume-0.4.0 spec/fume/logger_support_spec.rb
fume-0.3.5 spec/fume/logger_support_spec.rb
fume-0.3.4 spec/fume/logger_support_spec.rb
fume-0.3.3 spec/fume/logger_support_spec.rb