mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
Update docs
This commit is contained in:
parent
eaedcefa4e
commit
aa66592a80
@ -27,14 +27,17 @@ module ActionController
|
|||||||
|
|
||||||
# Asserts that the request was rendered with the appropriate serializers.
|
# Asserts that the request was rendered with the appropriate serializers.
|
||||||
#
|
#
|
||||||
# # assert that the "PostSerializer" serializer was rendered
|
# # assert that the "PostSerializer" serializer was rendered
|
||||||
# assert_serializer "PostSerializer"
|
# assert_serializer "PostSerializer"
|
||||||
#
|
#
|
||||||
# # assert that the exact serializer "Post" was rendered
|
# # assert that the "PostSerializer" serializer was rendered
|
||||||
# assert_serializer %r{\APost.+\Z}
|
# assert_serializer :post_serializer
|
||||||
#
|
#
|
||||||
# # assert that no serializer was rendered
|
# # assert that the rendered serializer starts with "Post"
|
||||||
# assert_serializer nil
|
# assert_serializer %r{\APost.+\Z}
|
||||||
|
#
|
||||||
|
# # assert that no serializer was rendered
|
||||||
|
# assert_serializer nil
|
||||||
#
|
#
|
||||||
def assert_serializer(options = {}, message = nil)
|
def assert_serializer(options = {}, message = nil)
|
||||||
# Force body to be read in case the template is being streamed.
|
# Force body to be read in case the template is being streamed.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user