Sha256: 222799b62f011719ecd7fdc94fb8b13d3470279564a16dc7cd245d042e1042d2

Contents?: true

Size: 899 Bytes

Versions: 4

Compression:

Stored size: 899 Bytes

Contents

require 'test/unit'
require 'rubygems'
require File.expand_path(File.join(File.dirname(__FILE__), '../../../../config/environment.rb'))

require 'active_record'
require 'active_record/fixtures'

config = YAML::load(IO.read(File.dirname(__FILE__) + '/db/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.configurations = {'test' => config[ENV['DB'] || 'sqlite3']}
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])

load(File.dirname(__FILE__) + '/db/schema.rb')

class ActiveSupport::TestCase
  include ActiveRecord::TestFixtures

  self.fixture_path = File.dirname(__FILE__) + '/fixtures/'

  self.use_transactional_fixtures = true
  self.use_instantiated_fixtures  = false

  fixtures :all
  set_fixture_class :page_versions => Page::Version
  set_fixture_class :author_versions => Author::Version
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
version_fu-1.0.2 test/test_helper.rb
edouard-version_fu-1.0.2 test/test_helper.rb
version_fu-1.0.1 test/test_helper.rb
nbudin-version_fu-1.0.0 test/test_helper.rb