Sha256: 88a0f062e4be98f66dabcd7e366f20540c9b0c9fe70b1b225e3a7a73a085243c

Contents?: true

Size: 290 Bytes

Versions: 7

Compression:

Stored size: 290 Bytes

Contents

require 'logger'

module BaseTest
  def self.connection_name
    ENV['NUODB_CONN'] || config['default_connection']
  end

  def self.connection_config
    config['connections'][connection_name].symbolize_keys!
  end

  def self.connect
    NuoDB::Connection.new connection_config
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nuodb-2.0.3 spec/support/connection.rb
nuodb-2.0 spec/support/connection.rb
nuodb-1.1 spec/support/connection.rb
nuodb-1.0.2 spec/support/connection.rb
nuodb-1.0.1 spec/support/connection.rb
nuodb-1.0.0 spec/support/connection.rb
nuodb-1.0.0.rc.2 spec/support/connection.rb