mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Test for SimpleAdapter#serializable_hash
This commit is contained in:
@@ -11,6 +11,10 @@ module ActiveModel
|
||||
@adapter = SimpleAdapter.new(@profile_serializer)
|
||||
end
|
||||
|
||||
def test_serializable_hash
|
||||
assert_equal({name: 'Name 1', description: 'Description 1'}, @adapter.serializable_hash)
|
||||
end
|
||||
|
||||
def test_simple_adapter
|
||||
assert_equal('{"name":"Name 1","description":"Description 1"}',
|
||||
@adapter.to_json)
|
||||
|
||||
Reference in New Issue
Block a user