class ActiveModel::Type::ValueTest

Public Instance Methods

test_type_equality() click to toggle source
# File activemodel/test/cases/type/value_test.rb, line 9
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