mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Test for NullAdapter#serializable_hash
This commit is contained in:
parent
7b7d4d8907
commit
2c7906e9ff
@ -11,6 +11,10 @@ module ActiveModel
|
||||
@adapter = NullAdapter.new(serializer)
|
||||
end
|
||||
|
||||
def test_serializable_hash
|
||||
assert_equal({}, @adapter.serializable_hash)
|
||||
end
|
||||
|
||||
def test_it_returns_empty_json
|
||||
assert_equal('{}', @adapter.to_json)
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user