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

Version Path
sequel_oracle_extensions-0.6.7 spec/spec_helper.rb
sequel_oracle_extensions-0.6.6 spec/spec_helper.rb
sequel_oracle_extensions-0.6.5 spec/spec_helper.rb
sequel_oracle_extensions-0.6.4 spec/spec_helper.rb
sequel_oracle_extensions-0.6.3 spec/spec_helper.rb
sequel_oracle_extensions-0.6.2 spec/spec_helper.rb
sequel_oracle_extensions-0.6.1 spec/spec_helper.rb
sequel_oracle_extensions-0.6.0 spec/spec_helper.rb
sequel_oracle_extensions-0.5.5 spec/spec_helper.rb
sequel_oracle_extensions-0.5.4 spec/spec_helper.rb
sequel_oracle_extensions-0.5.3 spec/spec_helper.rb