File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,9 @@ class PostsControllerTest < ActionController::TestCase
1010 test " should render post serializer" do
1111 get :index
1212 assert_serializer " PostSerializer"
13- # # return a custom error message
14- # assert_serializer "PostSerializer", "PostSerializer not rendered"
15- #
16- # # assert that the instance of PostSerializer was rendered
17- # assert_serializer PostSerializer
18- #
19- # # assert that the "PostSerializer" serializer was rendered
20- # assert_serializer :post_serializer
21- #
22- # # assert that the rendered serializer starts with "Post"
23- # assert_serializer %r{\APost.+\Z}
24- #
25- # # assert that no serializer was rendered
26- # assert_serializer nil
2713 end
2814end
2915```
16+
17+ See [ ActiveModelSerializers::Test::Serializer] ( ../../lib/active_model_serializers/test/serializer.rb )
18+ for more examples and documentation.
You can’t perform that action at this time.
0 commit comments