Sha256: 265c578b448f972fc5cb965bd6fd2d438d6791d501594d0aeeea8123ea3cc6fa

Contents?: true

Size: 381 Bytes

Versions: 12

Compression:

Stored size: 381 Bytes

Contents

require 'test_helper'

module ActiveModel
  class DefaultSerializer
    class Test < Minitest::Test
      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

12 entries across 12 versions & 2 rubygems

Version Path
active_model_serializers-0.9.11 test/unit/active_model/default_serializer_test.rb
active_model_serializers-0.9.9 test/unit/active_model/default_serializer_test.rb
active_model_serializers-0.9.8 test/unit/active_model/default_serializer_test.rb
active_model_serializers-0.9.7 test/unit/active_model/default_serializer_test.rb
active_model_serializers-0.9.6 test/unit/active_model/default_serializer_test.rb
active_model_serializers-0.9.5 test/unit/active_model/default_serializer_test.rb
active_model_serializers-0.9.4 test/unit/active_model/default_serializer_test.rb
active_model_serializers-0.9.3 test/unit/active_model/default_serializer_test.rb
active_model_serializers-0.9.2 test/unit/active_model/default_serializer_test.rb
active_model_serializers-0.9.1 test/unit/active_model/default_serializer_test.rb
active_model_serializers-0.9.0 test/unit/active_model/default_serializer_test.rb
active_model_serializers_rails_2.3-0.9.0.alpha1 test/unit/active_model/default_serializer_test.rb