diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-15 12:30:02 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-11-15 12:30:02 -0800 |
commit | 160b8a83444cd3784cba2396435ef06dba234122 (patch) | |
tree | bd82aac618f8bcb14e200b95bee6709161145695 /activerecord | |
parent | 0cd9b149e2e8af10f835718018cf009ebc4f9fda (diff) | |
download | rails-160b8a83444cd3784cba2396435ef06dba234122.tar.gz rails-160b8a83444cd3784cba2396435ef06dba234122.tar.bz2 rails-160b8a83444cd3784cba2396435ef06dba234122.zip |
Set up fixtures for AR tests
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index 13988d5392..02b39d7480 100644 --- a/activerecord/test/cases/helper.rb +++ b/activerecord/test/cases/helper.rb @@ -6,6 +6,7 @@ require 'test/unit' require 'active_record' require 'active_record/test_case' +require 'active_record/fixtures' require 'connection' # Show backtraces for deprecated behavior for quicker cleanup. @@ -55,3 +56,10 @@ unless ENV['FIXTURE_DEBUG'] alias_method_chain :try_to_load_dependency, :silence end end + +class ActiveSupport::TestCase + include ActiveRecord::TestFixtures + self.fixture_path = FIXTURES_ROOT + self.use_instantiated_fixtures = false + self.use_transactional_fixtures = true +end |