Test for SimpleAdapter#serializable_hash

This commit is contained in:
Tema Bolshakov
2014-08-27 09:15:07 +04:00
parent 553c470e10
commit 7b7d4d8907
2 changed files with 10 additions and 2 deletions

View File

@@ -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)