Remove 'Adapter' suffix from adapters since they are in Adapter:: namespace

This commit is contained in:
Tema Bolshakov
2014-08-29 11:40:56 +04:00
parent 6bb4501f67
commit e45e5a82b7
10 changed files with 17 additions and 17 deletions

View File

@@ -3,7 +3,7 @@ require 'test_helper'
module ActiveModel
class Serializer
class Adapter
class JsonApiAdapter
class JsonApi
class BelongsToTest < Minitest::Test
def setup
@post = Post.new(id: 42, title: 'New Post', body: 'Body')
@@ -12,7 +12,7 @@ module ActiveModel
@comment.post = @post
@serializer = CommentSerializer.new(@comment)
@adapter = ActiveModel::Serializer::Adapter::JsonApiAdapter.new(@serializer)
@adapter = ActiveModel::Serializer::Adapter::JsonApi.new(@serializer)
end
def test_includes_post_id

View File

@@ -3,7 +3,7 @@ require 'test_helper'
module ActiveModel
class Serializer
class Adapter
class JsonApiAdapter
class JsonApi
class HasManyTest < Minitest::Test
def setup
@post = Post.new(title: 'New Post', body: 'Body')

View File

@@ -8,7 +8,7 @@ module ActiveModel
@profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
@profile_serializer = ProfileSerializer.new(@profile)
@adapter = JsonAdapter.new(@profile_serializer)
@adapter = Json.new(@profile_serializer)
end
def test_serializable_hash

View File

@@ -3,12 +3,12 @@ require 'test_helper'
module ActiveModel
class Serializer
class Adapter
class NullAdapterTest < Minitest::Test
class NullTest < Minitest::Test
def setup
profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
serializer = ProfileSerializer.new(profile)
@adapter = NullAdapter.new(serializer)
@adapter = Null.new(serializer)
end
def test_serializable_hash