Sha256: 290bfa10311456e3300e858dd6ec2607bf3752e7c59ad366c0a3883d2bc8b058

Contents?: true

Size: 338 Bytes

Versions: 7

Compression:

Stored size: 338 Bytes

Contents

require 'yaml'

module CompositePrimaryKeys
  class ConnectionSpec
    def self.[](adapter)
      config[adapter.to_s]
    end

    private

    def self.config
      @config ||= begin
        path = File.join(PROJECT_ROOT, 'test', 'connections', 'databases.yml')
        puts path
        YAML.load_file(path)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
composite_primary_keys-3.0.9 test/connections/connection_spec.rb
composite_primary_keys-3.0.8 test/connections/connection_spec.rb
composite_primary_keys-3.0.7 test/connections/connection_spec.rb
composite_primary_keys-3.0.4 test/connections/connection_spec.rb
composite_primary_keys-3.0.3 test/connections/connection_spec.rb
composite_primary_keys-3.0.0.b3 test/connections/connection_spec.rb
composite_primary_keys-3.0.0.b2 test/connections/connection_spec.rb