Sha256: 9147c83c067ecd6c6f48c2df578a367c0ce49c8c351dc607045c5f37a70dd843
Contents?: true
Size: 1.39 KB
Versions: 4
Compression:
Stored size: 1.39 KB
Contents
# Include this file in your test by copying the following line to your test: # require File.expand_path(File.dirname(__FILE__) + "/test_helper") require 'rubygems' require 'bundler' Bundler.require :default, :test $:.unshift(File.dirname(__FILE__) + '/../lib') require 'shoulda' require 'active_support' require 'active_record' require 'active_record/fixtures' require "cached_values" require File.expand_path(File.dirname(__FILE__) + "/leprechaun") config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml')) ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log") ActiveRecord::Base.establish_connection(config[ENV['DB'] || 'sqlite3']) load(File.dirname(__FILE__) + "/schema.rb") if File.exist?(File.dirname(__FILE__) + "/schema.rb") class ActiveSupport::TestCase #:nodoc: # 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 # Turn off transactional fixtures if you're working with MyISAM tables in MySQL # self.use_transactional_fixtures = true # Instantiated fixtures are slow, but give you @david where you otherwise would need people(:david) # self.use_instantiated_fixtures = false # Add more helper methods to be used by all tests here... end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cached_values-1.9.1 | test/test_helper.rb |
cached_values-1.9.0 | test/test_helper.rb |
cached_values-1.8.1 | test/test_helper.rb |
cached_values-1.8.0 | test/test_helper.rb |