Sha256: 156d511b6118ca99126db123203ea6e51e39bbfcedd3d10add6feefdf687029e
Contents?: true
Size: 717 Bytes
Versions: 2
Compression:
Stored size: 717 Bytes
Contents
require "rubygems" require "bundler" Bundler.setup require 'test/unit' require 'shoulda' require 'factory_girl' require 'active_record' require 'delta_force' FIXTURES_PATH = File.join(File.dirname(__FILE__), 'fixtures') ActiveRecord::Base.establish_connection( :adapter => 'postgresql', :database => 'delta_force_test' ) dep = defined?(ActiveSupport::Dependencies) ? ActiveSupport::Dependencies : ::Dependencies dep.autoload_paths.unshift FIXTURES_PATH ActiveRecord::Base.silence do ActiveRecord::Migration.verbose = false load File.join(FIXTURES_PATH, 'schema.rb') end Dir[File.expand_path(File.dirname(__FILE__)) + "/factories/*.rb"].each do |file| require file end class Test::Unit::TestCase end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
delta_force-0.0.2 | test/helper.rb |
delta_force-0.0.1 | test/helper.rb |