activerecord tests should inherit from ActiveRecord::TestCase

This commit is contained in:
Aaron Patterson 2010-07-14 16:35:52 -07:00
parent 6a534455f6
commit 1db8ed0f4b
4 changed files with 4 additions and 4 deletions

@ -1,6 +1,6 @@
require 'cases/helper'
class PostgresqlActiveSchemaTest < Test::Unit::TestCase
class PostgresqlActiveSchemaTest < ActiveRecord::TestCase
def setup
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do
alias_method :real_execute, :execute

@ -2,7 +2,7 @@
require 'models/topic'
require 'models/reply'
class ActiveRecordI18nTests < Test::Unit::TestCase
class ActiveRecordI18nTests < ActiveRecord::TestCase
def setup
I18n.backend = I18n::Backend::Simple.new

@ -1,7 +1,7 @@
require 'cases/helper'
require 'models/topic'
class InvalidDateTest < Test::Unit::TestCase
class InvalidDateTest < ActiveRecord::TestCase
def test_assign_valid_dates
valid_dates = [[2007, 11, 30], [1993, 2, 28], [2008, 2, 29]]

@ -2,7 +2,7 @@
require "models/developer"
require "active_support/log_subscriber/test_helper"
class LogSubscriberTest < ActiveSupport::TestCase
class LogSubscriberTest < ActiveRecord::TestCase
include ActiveSupport::LogSubscriber::TestHelper
def setup