Sha256: 8c33d23d05668716060f7fe03a0a3d4a06d127719530ce07031a2c3ed0b11f32
Contents?: true
Size: 960 Bytes
Versions: 2
Compression:
Stored size: 960 Bytes
Contents
require 'test/unit' require 'rubygems' require 'active_record' require 'active_record/fixtures' require 'shoulda/rails' require File.expand_path(File.join(File.dirname(__FILE__), '../lib/has_draft')) config = YAML::load(IO.read(File.join(File.dirname(__FILE__), 'config', '/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__) + "/schema.rb") Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/" $:.unshift(Test::Unit::TestCase.fixture_path) $:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))) class Test::Unit::TestCase self.use_transactional_fixtures = true self.use_instantiated_fixtures = false end require File.expand_path(File.join(File.dirname(__FILE__), '../init'))
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
railsgarden-has_draft-0.1.0 | test/test_helper.rb |
railsgarden-has_draft-0.1.1 | test/test_helper.rb |