mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
rename test methods so tests run
incidentally test_array_serializer_with_root fails
This commit is contained in:
parent
9962069ae9
commit
00db4dd6db
@ -217,7 +217,7 @@ class RenderJsonTest < ActionController::TestCase
|
|||||||
assert_match '"object":{"serializable_object":true}', @response.body
|
assert_match '"object":{"serializable_object":true}', @response.body
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_render_json_with_serializer
|
def test_render_json_with_serializer_checking_defaults
|
||||||
get :render_json_with_serializer, :check_defaults => true
|
get :render_json_with_serializer, :check_defaults => true
|
||||||
assert_match '"scope":{"current_user":true}', @response.body
|
assert_match '"scope":{"current_user":true}', @response.body
|
||||||
assert_match '"object":{"serializable_object":true}', @response.body
|
assert_match '"object":{"serializable_object":true}', @response.body
|
||||||
|
|||||||
@ -389,7 +389,7 @@ class SerializerTest < ActiveModel::TestCase
|
|||||||
], serializer.as_json)
|
], serializer.as_json)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_array_serializer
|
def test_array_serializer_with_root
|
||||||
comment1 = Comment.new(:title => "Comment1", :id => 1)
|
comment1 = Comment.new(:title => "Comment1", :id => 1)
|
||||||
comment2 = Comment.new(:title => "Comment2", :id => 2)
|
comment2 = Comment.new(:title => "Comment2", :id => 2)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user