Sha256: 94fb5a352afe29e3b5ca552d07e529af3b01a7bb2a4fb509c1676232ef26b1cf

Contents?: true

Size: 296 Bytes

Versions: 8

Compression:

Stored size: 296 Bytes

Contents

require 'spec_helper'

describe 'Logger' do
  include_context 'database setup'

  it 'sets up a logger for sequel' do
    repository = rom.repositories[:default]

    repository.use_logger(LOGGER)

    expect(repository.logger).to be(LOGGER)
    expect(conn.loggers).to include(LOGGER)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rom-sql-0.5.1 spec/unit/logger_spec.rb
rom-sql-0.5.0 spec/unit/logger_spec.rb
rom-sql-0.4.3 spec/unit/logger_spec.rb
rom-sql-0.4.1 spec/unit/logger_spec.rb
rom-sql-0.4.0 spec/unit/logger_spec.rb
rom-sql-0.4.0.rc1 spec/unit/logger_spec.rb
rom-sql-0.4.0.beta2 spec/unit/logger_spec.rb
rom-sql-0.4.0.beta1 spec/unit/logger_spec.rb