aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/type/value_test.rb
blob: 671343b0c8353a0d4856557cae23b2d9545f8b7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require "cases/helper"
require "active_model/type"

module ActiveModel
  module Type
    class ValueTest < ActiveModel::TestCase
      def test_type_equality
        assert_equal Type::Value.new, Type::Value.new
        assert_not_equal Type::Value.new, Type::Integer.new
        assert_not_equal Type::Value.new(precision: 1), Type::Value.new(precision: 2)
      end
    end
  end
end