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)
        assert_equal('1..3', DefaultSerializer.new(1..3).serializable_object)
      end
    end
  end
end

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

Remove useless test that behaves differently in different Rails versions
Remove useless test that behaves differently in different Rails versions
