From 38e056ee2ae97450f509348442190f21bfc45a54 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 24 Sep 2009 22:56:20 -0700 Subject: Use ActiveModel::TestCase base class --- activemodel/lib/active_model/lint.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activemodel/lib') diff --git a/activemodel/lib/active_model/lint.rb b/activemodel/lib/active_model/lint.rb index 478f887043..ceaa29dc8c 100644 --- a/activemodel/lib/active_model/lint.rb +++ b/activemodel/lib/active_model/lint.rb @@ -1,6 +1,3 @@ -require "test/unit" -require "test/unit/ui/console/testrunner" - # You can test whether an object is compliant with the ActiveModel API by # calling ActiveModel::Lint.test(object). It will emit a Test::Unit # output that tells you whether your object is fully compliant, or if not, @@ -16,6 +13,9 @@ require "test/unit/ui/console/testrunner" module ActiveModel module Lint def self.test(object, verbosity = 2, output = STDOUT) + require "test/unit" + require "test/unit/ui/console/testrunner" + test_class = Class.new(::Test::Unit::TestCase) do include Test -- cgit v1.2.3