updating tests

This commit is contained in:
João Moura
2015-07-10 12:02:24 -03:00
committed by João M. D. Moura
parent 418721302b
commit 9817a5b595
6 changed files with 7 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ module ActiveModel
serializer = PostPreviewSerializer.new(@anonymous_post)
adapter = ActiveModel::Serializer::Adapter::Json.new(serializer)
assert_equal({posts: {title: "Hello!!", body: "Hello, world!!", id: 43, comments: [], author: nil}}, adapter.serializable_hash)
assert_equal({post: {title: "Hello!!", body: "Hello, world!!", id: 43, comments: [], author: nil}}, adapter.serializable_hash)
end
end
end