Sha256: 9bb29cd7d8da0ca9e1f420a51ac08127ebce10d3ec37a60e32f1dab93b019900
Contents?: true
Size: 734 Bytes
Versions: 11
Compression:
Stored size: 734 Bytes
Contents
require 'rubygems' require 'pp' begin require 'win32console' and include Win32::Console::ANSI rescue LoadError end if RUBY_PLATFORM =~ /msvc|mingw|cygwin|win32/ $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'sequel' require "rspec" DATABASE_URL = begin user = ENV['DATABASE_USER'] || 'hr' password = ENV['DATABASE_PASSWORD'] || 'hr' name = ENV['DATABASE_NAME'] || 'xe' host = ENV['DATABASE_HOST'] || 'localhost' port = ':'+ENV['DATABASE_PORT'] rescue nil "oracle://#{user}:#{password}@#{host}#{port}/#{name}" end RSpec.configure do |config| require 'rspec/expectations' config.include RSpec::Matchers config.mock_with :rspec end
Version data entries
11 entries across 11 versions & 1 rubygems