aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/type/value_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/test/cases/type/value_test.rb')
-rw-r--r--activemodel/test/cases/type/value_test.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/activemodel/test/cases/type/value_test.rb b/activemodel/test/cases/type/value_test.rb
new file mode 100644
index 0000000000..55b5d9d584
--- /dev/null
+++ b/activemodel/test/cases/type/value_test.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+require "cases/helper"
+
+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