Sha256: 77b4e80129b0baadeaa16b736e5d01d57e6507564663aadf100da5850b37afad

Contents?: true

Size: 819 Bytes

Versions: 12

Compression:

Stored size: 819 Bytes

Contents

#require 'yaml'
#require 'fileutils'
#require 'pathname'
#
#SPEC_ROOT = File.expand_path(File.dirname(__FILE__))
#
#class Hash
#  def symbolize_keys!
#    keys.each do |key|
#      self[(key.to_sym rescue key) || key] = delete(key)
#    end
#    self
#  end
#end
#
#module BaseTest
#  class << self
#    def config
#      @config ||= read_config
#    end
#
#    private
#
#    def config_file
#      Pathname.new(ENV['NUODB_CONFIG'] || File.join(SPEC_ROOT, 'config.yml'))
#    end
#
#    def read_config
#      unless config_file.exist?
#        FileUtils.cp(File.join(SPEC_ROOT, 'config.example.yml'), config_file)
#      end
#
#      erb = Erubis::Eruby.new(config_file.read)
#      expand_config(YAML.parse(erb.result(binding)).transform)
#    end
#
#    def expand_config(config)
#      config
#    end
#  end
#end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
activerecord-jdbcnuodb-adapter-2.0.3 spec/support/config.rb
jdbc-nuodb-2.0.3 spec/support/config.rb
activerecord-jdbcnuodb-adapter-2.0 spec/support/config.rb
jdbc-nuodb-2.0 spec/support/config.rb
activerecord-jdbcnuodb-adapter-1.2 spec/support/config.rb
jdbc-nuodb-1.2 spec/support/config.rb
activerecord-jdbcnuodb-adapter-1.0.3 spec/support/config.rb
activerecord-jdbcnuodb-adapter-1.0.2 spec/support/config.rb
activerecord-jdbcnuodb-adapter-1.0.1 spec/support/config.rb
jdbc-nuodb-1.0.1 spec/support/config.rb
activerecord-jdbcnuodb-adapter-1.0.0 spec/support/config.rb
jdbc-nuodb-1.0.0 spec/support/config.rb