mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
parent
2edaa22605
commit
ab5d40f38b
@ -21,7 +21,7 @@ class DefaultScopeNameTest < ActionController::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def render_new_user
|
def render_new_user
|
||||||
respond_with TestUser.new('pete', false), :serializer => UserSerializer
|
render :json => TestUser.new('pete', false), :serializer => UserSerializer
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ class SerializationScopeNameTest < ActionController::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def render_new_user
|
def render_new_user
|
||||||
respond_with TestUser.new('pete', false), :serializer => AdminUserSerializer
|
render :json => TestUser.new('pete', false), :serializer => AdminUserSerializer
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,6 @@ class RenderJsonTest < ActionController::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
class TestController < ActionController::Base
|
class TestController < ActionController::Base
|
||||||
include ::ActionController::Serialization::RenderJsonOverride
|
|
||||||
protect_from_forgery
|
protect_from_forgery
|
||||||
|
|
||||||
serialization_scope :current_user
|
serialization_scope :current_user
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user