Sha256: 258dbbba35be2412f6f254a07a66dc4af139da4c93f86a2b43954815b498d5ce
Contents?: true
Size: 374 Bytes
Versions: 2
Compression:
Stored size: 374 Bytes
Contents
require 'test_helper' module ActiveModel class DefaultSerializer class Test < Minitest::Test def test_serialize_objects assert_nil(DefaultSerializer.new(nil).serializable_object) assert_equal(1, DefaultSerializer.new(1).serializable_object) assert_equal('hi', DefaultSerializer.new('hi').serializable_object) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.9.13 | test/unit/active_model/default_serializer_test.rb |
active_model_serializers-0.9.12 | test/unit/active_model/default_serializer_test.rb |