Sha256: 23036e51e06c4598b3ba6e69bf0eeed76d6422947299aa37aee06c7d6aec7e3a

Contents?: true

Size: 821 Bytes

Versions: 2

Compression:

Stored size: 821 Bytes

Contents

require 'rubygems'

begin
  require 'ruby-debug'
rescue LoadError
  puts "ruby-debug not loaded"
end


require 'active_record'
require 'active_support'
require 'active_support/test_case'


gem 'sqlite3-ruby'
gem 'searchlogic'
require 'searchlogic'
require "shoulda"



ROOT = File.join(File.dirname(__FILE__), '..')
RAILS_ROOT = ROOT
RAILS_ENV = "test"


$LOAD_PATH << File.join(ROOT, 'lib')
$LOAD_PATH << File.join(ROOT, 'lib', 'id_please')

require File.join(ROOT, 'lib', 'id_please.rb')

config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config['test'])




module Test::Unit::Assertions
  def assert_false(object, message="")
    assert_equal(false, object, message)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
id_please-0.3.1 test/test_helper.rb
id_please-0.3.0 test/test_helper.rb