Favor ActiveSupport::TestCase over Minitest::Test

- Better minitest 4/5 support
- Better DSL
- Already available with no changes
- Consistent interface
This commit is contained in:
Benjamin Fleischer
2015-12-20 15:18:14 -06:00
parent 9909908962
commit 419faf03b9
45 changed files with 50 additions and 50 deletions

View File

@@ -2,7 +2,7 @@ require 'test_helper'
module ActiveModel
class Serializer
class AssociationsTest < Minitest::Test
class AssociationsTest < ActiveSupport::TestCase
def setup
@author = Author.new(name: 'Steve K.')
@author.bio = nil
@@ -158,7 +158,7 @@ module ActiveModel
::ARModels::Comment.delete_all
end
class NamespacedResourcesTest < Minitest::Test
class NamespacedResourcesTest < ActiveSupport::TestCase
class ResourceNamespace
Post = Class.new(::Model)
Comment = Class.new(::Model)
@@ -200,7 +200,7 @@ module ActiveModel
end
end
class NestedSerializersTest < Minitest::Test
class NestedSerializersTest < ActiveSupport::TestCase
Post = Class.new(::Model)
Comment = Class.new(::Model)
Author = Class.new(::Model)