aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-09-24 22:56:20 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-09-24 22:56:30 -0700
commit38e056ee2ae97450f509348442190f21bfc45a54 (patch)
tree9bfb0b29c6520aa01473503733ddf577f8b1b54c /activemodel/lib
parentf430d6b63e5a756cf248e92d87a61a505034600c (diff)
downloadrails-38e056ee2ae97450f509348442190f21bfc45a54.tar.gz
rails-38e056ee2ae97450f509348442190f21bfc45a54.tar.bz2
rails-38e056ee2ae97450f509348442190f21bfc45a54.zip
Use ActiveModel::TestCase base class
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/lint.rb6
1 files changed, 3 insertions, 3 deletions
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