Sha256: d9a98aa91bbdcebc2f1facffc25ae2795f8a70522e888ace80bc54f941829d95
Contents?: true
Size: 1.35 KB
Versions: 2
Compression:
Stored size: 1.35 KB
Contents
Dir.chdir(File.join(File.dirname(__FILE__), "..")) do ENV['RAILS_ENV'] = 'mysql' RAILS_ENV = 'mysql' RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION HELPER_RAILS_ROOT = File.join(Dir.pwd, "test", "app_root") RAILS_ROOT = File.join(Dir.pwd, "test", "app_root") # Load the plugin testing framework require 'rubygems' require 'plugin_test_helper' # Run the migrations (optional) ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate") require 'init' ActiveSupport::TestCase.class_eval do self.use_transactional_fixtures = true self.use_instantiated_fixtures = false self.fixture_path = File.join(Dir.pwd, "test", "fixtures") set_fixture_class :books => Book, :chapters => Chapter, :users => User, :groups => Group, :annotations => Annotation, :annotation_versions => Annotation::Version, :annotation_attributes => AnnotationAttribute, :annotation_value_seeds => AnnotationValueSeed, :text_values => TextValue, :text_value_versions => TextValue::Version, :number_values => NumberValue, :number_value_versions => NumberValue::Version fixtures :all end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
my_annotations-0.6.0 | test/test_helper.rb |
my_annotations-0.5.1 | test/test_helper.rb |