Sha256: 10cdf6cfaf2fe14b50698ad0d1caa6554c3dfcbec738d05737d97850e6a5cffa

Contents?: true

Size: 1.08 KB

Versions: 10

Compression:

Stored size: 1.08 KB

Contents

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

ENV['RAILS_ENV'] = 'test'
require File.dirname(__FILE__) + '/rails/2.x/config/environment.rb'
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")

require 'test/unit'
require 'active_record/fixtures'
require 'action_controller/test_process'
require 'sqlite3'
require 'friendly_id/slug'

config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.establish_connection

silence_stream(STDOUT) do
  load(File.dirname(__FILE__) + "/schema.rb")
end

Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures"
$LOAD_PATH.unshift(Test::Unit::TestCase.fixture_path)

class Test::Unit::TestCase #:nodoc:
  include ActionController::TestProcess
  def create_fixtures(*table_names)
    if block_given?
      Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names) { yield }
    else
      Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names)
    end
  end
  self.use_transactional_fixtures = true
  self.use_instantiated_fixtures  = false
end

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
dougcole-friendly_id-2.0.2 test/test_helper.rb
dougcole-friendly_id-2.0.3 test/test_helper.rb
dougcole-friendly_id-2.0.4 test/test_helper.rb
dougcole-friendly_id-2.0.5 test/test_helper.rb
norman-friendly_id-2.0.1 test/test_helper.rb
norman-friendly_id-2.0.2 test/test_helper.rb
alancse-friendly_id-2.0.1 test/test_helper.rb
friendly_id-1.9.9 test/test_helper.rb
friendly_id-2.0.1 test/test_helper.rb
friendly_id-2.0.0 test/test_helper.rb