Sha256: 98ef34c79364b89d9f2472e80f0d7fbce78f60f59e050a538dc005f3e7894966

Contents?: true

Size: 419 Bytes

Versions: 11

Compression:

Stored size: 419 Bytes

Contents

require 'spec_helper'

describe 'ROM logger' do
  let(:rom) { ROM.env }

  it 'sets up rails logger for all gateways' do
    pending 'this will be re-enabled once we have feature detection on ' \
      'adapters and in case of missing rails-log-subscriber support we ' \
      'will set logger to Rails.logger'
    rom.gateways.each_value do |gateway|
      expect(gateway.logger).to be(Rails.logger)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rom-rails-0.9.0 spec/integration/logger_spec.rb
rom-rails-0.9.0.beta1 spec/integration/logger_spec.rb
rom-rails-0.8.0 spec/integration/logger_spec.rb
rom-rails-0.7.0 spec/integration/logger_spec.rb
rom-rails-0.6.0 spec/integration/logger_spec.rb
rom-rails-0.6.0.rc1 spec/integration/logger_spec.rb
rom-rails-0.6.0.beta1 spec/integration/logger_spec.rb
rom-rails-0.5.0 spec/integration/logger_spec.rb
rom-rails-0.5.0.rc1 spec/integration/logger_spec.rb
rom-rails-0.5.0.beta1 spec/integration/logger_spec.rb
rom-rails-0.4.0 spec/integration/logger_spec.rb