Skip to content

Commit 3d4754f

Browse files
committed
Use ActiveModel::TestCase instead of Test::Unit:TestCase
1 parent ce84df0 commit 3d4754f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activemodel/test/cases/naming_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def test_i18n_key
210210
end
211211
end
212212

213-
class NamingHelpersTest < Test::Unit::TestCase
213+
class NamingHelpersTest < ActiveModel::TestCase
214214
def setup
215215
@klass = Contact
216216
@record = @klass.new
@@ -276,7 +276,7 @@ def method_missing(method, *args)
276276
end
277277
end
278278

279-
class NameWithAnonymousClassTest < Test::Unit::TestCase
279+
class NameWithAnonymousClassTest < ActiveModel::TestCase
280280
def test_anonymous_class_without_name_argument
281281
assert_raises(ArgumentError) do
282282
ActiveModel::Name.new(Class.new)

0 commit comments

Comments
 (0)