Sha256: b39e8ceb1ec85813059011bf607d1de437678bbe0f6cc0a23fa760fafff9e93e

Contents?: true

Size: 1.21 KB

Versions: 19

Compression:

Stored size: 1.21 KB

Contents

require 'rubygems'
require 'ric'
require 'test/unit'
require 'active_support'

ENV['RAILS_ENV'] = 'test'
#ENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '/../../../..'
ENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '/..'
 
ppurple "TEST_HELPER for RIC gem"
 
require 'test/unit'
#require File.expand_path(File.join(ENV['RAILS_ROOT'], 'config/environment.rb'))
 
#def load_schema
#  config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
#  ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
# 
#  db_adapter = ENV['DB']
# 
#  # no db passed, try one of these fine config-free DBs before bombing.
#  db_adapter ||=
#    begin
#      require 'rubygems'
#      require 'sqlite'
#      'sqlite'
#    rescue MissingSourceFile
#      begin
#        require 'sqlite3'
#        'sqlite3'
#      rescue MissingSourceFile
#      end
#    end
# 
#  if db_adapter.nil?
#    raise "No DB Adapter selected. Pass the DB= option to pick one, or install Sqlite or Sqlite3."
#  end
# 
#  ActiveRecord::Base.establish_connection(config[db_adapter])
#  load(File.dirname(__FILE__) + "/schema.rb")
#  #require File.dirname(__FILE__) + '/../rails/init' rescue nil # if its not ther, no probs (its obsolete!) :)
#end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ric-0.14.2 test/test_helper.rb
ric-0.14.1 test/test_helper.rb
ric-0.14.0 test/test_helper.rb
ric-0.13.0 test/test_helper.rb
ric-0.12.2 test/test_helper.rb
ric-0.12.0 test/test_helper.rb
ric-0.11.19 test/test_helper.rb
ric-0.11.18 test/test_helper.rb
ric-0.11.16 test/test_helper.rb
ric-0.11.15 test/test_helper.rb
ric-0.11.14 test/test_helper.rb
ric-0.11.13 test/test_helper.rb
ric-0.11.12 test/test_helper.rb
ric-0.11.11 test/test_helper.rb
ric-0.11.10 test/test_helper.rb
ric-0.11.9 test/test_helper.rb
ric-0.11.7 test/test_helper.rb
ric-0.11.6 test/test_helper.rb
ric-0.11.4 test/test_helper.rb