Sha256: ce45f8d92484fec4a4f015ad44b1f5d4e73fb670db48fd0243612e55c57d2943

Contents?: true

Size: 1.07 KB

Versions: 6

Compression:

Stored size: 1.07 KB

Contents

RAILS_ROOT = File.join(File.dirname(__FILE__), '..') unless defined? RAILS_ROOT

$:.unshift(File.dirname(__FILE__) + '/../..')
$:.unshift(File.dirname(__FILE__) + '/../../lib')
schema_file = File.join(File.dirname(__FILE__), '..', 'schema.rb')

require 'rubygems'
require 'test/unit'

require 'active_support'
require 'active_support/test_case'
require 'active_record'
require 'active_record/fixtures'
require 'action_controller'
require 'action_controller/test_case'
require 'action_controller/assertions'
require 'action_controller/test_process'
require 'action_controller/integration'
require 'sqlite3'

require File.join(File.dirname(__FILE__), '..', '..', '..', 'lib', 'ruboss4ruby')

config = YAML::load(IO.read(File.join(File.dirname(__FILE__), '..', 'database.yml')))[ENV['DB'] || 'test']
ActiveRecord::Base.configurations = config
ActiveRecord::Base.establish_connection(config)

load(schema_file) if File.exist?(schema_file)

Test::Unit::TestCase.fixture_path = File.join(File.dirname(__FILE__), '..', 'fixtures')
$:.unshift(Test::Unit::TestCase.fixture_path)

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
dima-ruboss4ruby-1.1.0 test/rails/helpers/unit_test_helper.rb
dima-ruboss4ruby-1.1.1 test/rails/helpers/unit_test_helper.rb
dima-ruboss4ruby-1.1.2 test/rails/helpers/unit_test_helper.rb
ruboss4ruby-1.1.0 test/rails/helpers/unit_test_helper.rb
ruboss4ruby-1.1.1 test/rails/helpers/unit_test_helper.rb
ruboss4ruby-1.1.2 test/rails/helpers/unit_test_helper.rb