mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
changing tests name to support new default adapter
This commit is contained in:
parent
738894e5b4
commit
9b502a4ae0
@ -4,7 +4,7 @@ module ActionController
|
|||||||
module Serialization
|
module Serialization
|
||||||
class AdapterSelectorTest < ActionController::TestCase
|
class AdapterSelectorTest < ActionController::TestCase
|
||||||
class MyController < ActionController::Base
|
class MyController < ActionController::Base
|
||||||
def render_using_default_adapter
|
def render_using_the_initializer_defined_adapter
|
||||||
@profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
|
@profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' })
|
||||||
render json: @profile
|
render json: @profile
|
||||||
end
|
end
|
||||||
@ -23,7 +23,7 @@ module ActionController
|
|||||||
tests MyController
|
tests MyController
|
||||||
|
|
||||||
def test_render_using_default_adapter
|
def test_render_using_default_adapter
|
||||||
get :render_using_default_adapter
|
get :render_using_the_initializer_defined_adapter
|
||||||
assert_equal '{"name":"Name 1","description":"Description 1"}', response.body
|
assert_equal '{"name":"Name 1","description":"Description 1"}', response.body
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user