Move fixtures settings from AR::TestCase to railties test_help

This commit is contained in:
Jeremy Kemper
2008-11-12 11:33:09 -08:00
parent 4e9abdd7f1
commit 9a88ab64bb
2 changed files with 16 additions and 13 deletions

View File

@@ -1,15 +1,7 @@
require "active_support/test_case"
module ActiveRecord
module ActiveRecord
class TestCase < ActiveSupport::TestCase #:nodoc:
self.fixture_path = FIXTURES_ROOT
self.use_instantiated_fixtures = false
self.use_transactional_fixtures = true
def create_fixtures(*table_names, &block)
Fixtures.create_fixtures(FIXTURES_ROOT, table_names, {}, &block)
end
def assert_date_from_db(expected, actual, message = nil)
# SQL Server doesn't have a separate column type just for dates,
# so the time is in the string and incorrectly formatted