Sha256: 8cdb8f563484f2811ee4c4ed78f64a88b829325d98f67dd7408a79486a07f30f

Contents?: true

Size: 934 Bytes

Versions: 18

Compression:

Stored size: 934 Bytes

Contents

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

require 'rubygems'
require 'test/unit'
require 'multi_rails_init'
require 'test_help'

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

TestCaseClass = ActiveSupport::TestCase rescue Test::Unit::TestCase

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 TestCaseClass #: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

18 entries across 18 versions & 5 rubygems

Version Path
collectiveidea-awesome_nested_set-1.4.0 test/test_helper.rb
collectiveidea-awesome_nested_set-1.4.1 test/test_helper.rb
collectiveidea-awesome_nested_set-1.4.2 test/test_helper.rb
spree-0.11.4 vendor/plugins/awesome_nested_set/test/test_helper.rb
spree-0.11.3 vendor/plugins/awesome_nested_set/test/test_helper.rb
awesome_nested_set-1.4.4 test/test_helper.rb
spree-0.11.2 vendor/plugins/awesome_nested_set/test/test_helper.rb
spree-0.11.1 vendor/plugins/awesome_nested_set/test/test_helper.rb
rd_awesome_nested_set-1.4.4 test/test_helper.rb
spree-0.11.0 vendor/plugins/awesome_nested_set/test/test_helper.rb
spree-0.10.2 vendor/plugins/awesome_nested_set/test/test_helper.rb
spree-0.10.1 vendor/plugins/awesome_nested_set/test/test_helper.rb
spree-0.10.0 vendor/plugins/awesome_nested_set/test/test_helper.rb
spree-0.10.0.beta vendor/plugins/awesome_nested_set/test/test_helper.rb
bc-to_xls-0.0.0 test/test_helper.rb
awesome_nested_set-1.4.2 test/test_helper.rb
awesome_nested_set-1.4.3 test/test_helper.rb
awesome_nested_set-1.4.1 test/test_helper.rb