mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user