Permalink
Browse files

Use ActiveModel::TestCase instead of Test::Unit:TestCase

  • Loading branch information...
1 parent ce84df0 commit 3d4754f131ee2e64ae4e4297c069293f1448e1de @rafaelfranca rafaelfranca committed Jan 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activemodel/test/cases/naming_test.rb
@@ -210,7 +210,7 @@ def test_i18n_key
end
end
-class NamingHelpersTest < Test::Unit::TestCase
+class NamingHelpersTest < ActiveModel::TestCase
def setup
@klass = Contact
@record = @klass.new
@@ -276,7 +276,7 @@ def method_missing(method, *args)
end
end
-class NameWithAnonymousClassTest < Test::Unit::TestCase
+class NameWithAnonymousClassTest < ActiveModel::TestCase
def test_anonymous_class_without_name_argument
assert_raises(ArgumentError) do
ActiveModel::Name.new(Class.new)

0 comments on commit 3d4754f

Please sign in to comment.