Sha256: 41715d8a97c067ddf6fbc0f744740f5acb129510347bd247d0b2ce131700eb72

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

require 'test_helper'

module ActiveModel
  class DefaultSerializer
    class Test < ActiveModel::TestCase
      def test_serialize_objects
        assert_equal(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

1 entries across 1 versions & 1 rubygems

Version Path
active_model_serializers-0.9.0.alpha1 test/unit/active_model/default_serializer_test.rb