Sha256: aee065eb3b4a2baeee8057aa4d707ce65d5bd9735426ba6cf5320eda68ac77d1

Contents?: true

Size: 1015 Bytes

Versions: 7

Compression:

Stored size: 1015 Bytes

Contents

require 'rubygems'
require 'test/unit'
require 'active_support'
require 'active_record'
require 'active_record/fixtures'
require 'shoulda'

ActiveRecord::Base.configurations = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.establish_connection('test')
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/test.log")

load(File.dirname(__FILE__) + "/schema.rb")

$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'property_sets'

class ActiveSupport::TestCase
  include ActiveRecord::TestFixtures

  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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
property_sets-0.0.12 test/helper.rb
property_sets-0.0.11 test/helper.rb
property_sets-0.0.10 test/helper.rb
property_sets-0.0.9 test/helper.rb
property_sets-0.0.8 test/helper.rb
property_sets-0.0.7 test/helper.rb
property_sets-0.0.6 test/helper.rb