Sha256: d12347cb747f5f98ac40bc6a2c8a35374d23ad6e523675a78316176b80b4edc1

Contents?: true

Size: 931 Bytes

Versions: 1

Compression:

Stored size: 931 Bytes

Contents

$:.unshift(File.dirname(__FILE__) + '/../lib')
plugin_test_dir = File.dirname(__FILE__)

require 'rubygems'
require 'test/unit'
require 'multi_rails_init'
require 'active_record' 
require 'action_controller'
require 'action_view'
require 'active_record/fixtures'

require plugin_test_dir + '/../init.rb'

ActiveRecord::Base.logger = Logger.new(plugin_test_dir + "/debug.log")

ActiveRecord::Base.configurations = YAML::load(IO.read(plugin_test_dir + "/db/database.yml"))
ActiveRecord::Base.establish_connection(ENV["DB"] || "sqlite3mem")
ActiveRecord::Migration.verbose = false
load(File.join(plugin_test_dir, "db", "schema.rb"))

Dir["#{plugin_test_dir}/fixtures/*.rb"].each {|file| require file }


class Test::Unit::TestCase #:nodoc:
  self.fixture_path = File.dirname(__FILE__) + "/fixtures/"
  self.use_transactional_fixtures = true
  self.use_instantiated_fixtures  = false
  
  fixtures :categories, :notes, :departments
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
collectiveidea-awesome_nested_set-1.2.0 test/test_helper.rb