Sha256: 0d848edd883cef0d3577540c3aea42f62fd7d1b8aed08bca3429a2d5dd0d2016
Contents?: true
Size: 591 Bytes
Versions: 1
Compression:
Stored size: 591 Bytes
Contents
require 'test_helper' module ActiveModel class Serializer module Adapter class NullTest < ActiveSupport::TestCase def setup profile = Profile.new({ name: 'Name 1', description: 'Description 1', comments: 'Comments 1' }) serializer = ProfileSerializer.new(profile) @adapter = Null.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 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.10.0.rc4 | test/adapter/null_test.rb |