Sha256: 35ecad3c90b65851a50167e71f33c098b25ba4bc663a97a03489e89fbf4078ed
Contents?: true
Size: 758 Bytes
Versions: 3
Compression:
Stored size: 758 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sequel_oracle_extensions-0.5.2 | spec/spec_helper.rb |
sequel_oracle_extensions-0.5.1 | spec/spec_helper.rb |
sequel_oracle_extensions-0.5.0 | spec/spec_helper.rb |