aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/type
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael@franca.dev>2019-08-02 00:25:13 -0400
committerRafael Mendonça França <rafael@franca.dev>2019-08-02 00:25:13 -0400
commit0e626670476cb02a71a1bcb61f8b9d0b3315383f (patch)
treecf965dd82b31006cb6bd88d8fb1d5d7a71eff181 /activemodel/test/cases/type
parent967beb7229e29c7d09fc3a5bc8205d2a6119e1c5 (diff)
downloadrails-0e626670476cb02a71a1bcb61f8b9d0b3315383f.tar.gz
rails-0e626670476cb02a71a1bcb61f8b9d0b3315383f.tar.bz2
rails-0e626670476cb02a71a1bcb61f8b9d0b3315383f.zip
Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f"
This reverts commit dd779c9686f49f5ed6dda8ad5a1cb3b0788e1dd4.
Diffstat (limited to 'activemodel/test/cases/type')
-rw-r--r--activemodel/test/cases/type/big_integer_test.rb2
-rw-r--r--activemodel/test/cases/type/binary_test.rb2
-rw-r--r--activemodel/test/cases/type/boolean_test.rb2
-rw-r--r--activemodel/test/cases/type/date_test.rb2
-rw-r--r--activemodel/test/cases/type/date_time_test.rb2
-rw-r--r--activemodel/test/cases/type/decimal_test.rb2
-rw-r--r--activemodel/test/cases/type/float_test.rb2
-rw-r--r--activemodel/test/cases/type/immutable_string_test.rb2
-rw-r--r--activemodel/test/cases/type/integer_test.rb2
-rw-r--r--activemodel/test/cases/type/registry_test.rb2
-rw-r--r--activemodel/test/cases/type/string_test.rb2
-rw-r--r--activemodel/test/cases/type/time_test.rb2
-rw-r--r--activemodel/test/cases/type/value_test.rb2
13 files changed, 13 insertions, 13 deletions
diff --git a/activemodel/test/cases/type/big_integer_test.rb b/activemodel/test/cases/type/big_integer_test.rb
index 1ab0abe9ce..0fa0200df4 100644
--- a/activemodel/test/cases/type/big_integer_test.rb
+++ b/activemodel/test/cases/type/big_integer_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class BigIntegerTest < ActiveSupport::TestCase
+ class BigIntegerTest < ActiveModel::TestCase
def test_type_cast_big_integer
type = Type::BigInteger.new
assert_equal 1, type.cast(1)
diff --git a/activemodel/test/cases/type/binary_test.rb b/activemodel/test/cases/type/binary_test.rb
index b04b59f8dd..3221a73e49 100644
--- a/activemodel/test/cases/type/binary_test.rb
+++ b/activemodel/test/cases/type/binary_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class BinaryTest < ActiveSupport::TestCase
+ class BinaryTest < ActiveModel::TestCase
def test_type_cast_binary
type = Type::Binary.new
assert_nil type.cast(nil)
diff --git a/activemodel/test/cases/type/boolean_test.rb b/activemodel/test/cases/type/boolean_test.rb
index 30c41ca80c..7f8490b2fe 100644
--- a/activemodel/test/cases/type/boolean_test.rb
+++ b/activemodel/test/cases/type/boolean_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class BooleanTest < ActiveSupport::TestCase
+ class BooleanTest < ActiveModel::TestCase
def test_type_cast_boolean
type = Type::Boolean.new
assert_predicate type.cast(""), :nil?
diff --git a/activemodel/test/cases/type/date_test.rb b/activemodel/test/cases/type/date_test.rb
index 38649c4471..2dd1a55616 100644
--- a/activemodel/test/cases/type/date_test.rb
+++ b/activemodel/test/cases/type/date_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class DateTest < ActiveSupport::TestCase
+ class DateTest < ActiveModel::TestCase
def test_type_cast_date
type = Type::Date.new
assert_nil type.cast(nil)
diff --git a/activemodel/test/cases/type/date_time_test.rb b/activemodel/test/cases/type/date_time_test.rb
index 68dd4995d0..4a63eee0cf 100644
--- a/activemodel/test/cases/type/date_time_test.rb
+++ b/activemodel/test/cases/type/date_time_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class DateTimeTest < ActiveSupport::TestCase
+ class DateTimeTest < ActiveModel::TestCase
def test_type_cast_datetime_and_timestamp
type = Type::DateTime.new
assert_nil type.cast(nil)
diff --git a/activemodel/test/cases/type/decimal_test.rb b/activemodel/test/cases/type/decimal_test.rb
index af89ef309b..be60c4f7fa 100644
--- a/activemodel/test/cases/type/decimal_test.rb
+++ b/activemodel/test/cases/type/decimal_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class DecimalTest < ActiveSupport::TestCase
+ class DecimalTest < ActiveModel::TestCase
def test_type_cast_decimal
type = Decimal.new
assert_equal BigDecimal("0"), type.cast(BigDecimal("0"))
diff --git a/activemodel/test/cases/type/float_test.rb b/activemodel/test/cases/type/float_test.rb
index 2b2c99b8ce..230a8dda32 100644
--- a/activemodel/test/cases/type/float_test.rb
+++ b/activemodel/test/cases/type/float_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class FloatTest < ActiveSupport::TestCase
+ class FloatTest < ActiveModel::TestCase
def test_type_cast_float
type = Type::Float.new
assert_equal 1.0, type.cast("1")
diff --git a/activemodel/test/cases/type/immutable_string_test.rb b/activemodel/test/cases/type/immutable_string_test.rb
index b3140c2682..751f753ddb 100644
--- a/activemodel/test/cases/type/immutable_string_test.rb
+++ b/activemodel/test/cases/type/immutable_string_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class ImmutableStringTest < ActiveSupport::TestCase
+ class ImmutableStringTest < ActiveModel::TestCase
test "cast strings are frozen" do
s = "foo"
type = Type::ImmutableString.new
diff --git a/activemodel/test/cases/type/integer_test.rb b/activemodel/test/cases/type/integer_test.rb
index 79bd7ee95d..6c02c01237 100644
--- a/activemodel/test/cases/type/integer_test.rb
+++ b/activemodel/test/cases/type/integer_test.rb
@@ -5,7 +5,7 @@ require "active_support/core_ext/numeric/time"
module ActiveModel
module Type
- class IntegerTest < ActiveSupport::TestCase
+ class IntegerTest < ActiveModel::TestCase
test "simple values" do
type = Type::Integer.new
assert_nil type.cast("")
diff --git a/activemodel/test/cases/type/registry_test.rb b/activemodel/test/cases/type/registry_test.rb
index 2afc54f1f5..0633ea2538 100644
--- a/activemodel/test/cases/type/registry_test.rb
+++ b/activemodel/test/cases/type/registry_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class RegistryTest < ActiveSupport::TestCase
+ class RegistryTest < ActiveModel::TestCase
test "a class can be registered for a symbol" do
registry = Type::Registry.new
registry.register(:foo, ::String)
diff --git a/activemodel/test/cases/type/string_test.rb b/activemodel/test/cases/type/string_test.rb
index 999368fd13..9cc530e8db 100644
--- a/activemodel/test/cases/type/string_test.rb
+++ b/activemodel/test/cases/type/string_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class StringTest < ActiveSupport::TestCase
+ class StringTest < ActiveModel::TestCase
test "type casting" do
type = Type::String.new
assert_equal "t", type.cast(true)
diff --git a/activemodel/test/cases/type/time_test.rb b/activemodel/test/cases/type/time_test.rb
index 095dbd6d83..5c6271241d 100644
--- a/activemodel/test/cases/type/time_test.rb
+++ b/activemodel/test/cases/type/time_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class TimeTest < ActiveSupport::TestCase
+ class TimeTest < ActiveModel::TestCase
def test_type_cast_time
type = Type::Time.new
assert_nil type.cast(nil)
diff --git a/activemodel/test/cases/type/value_test.rb b/activemodel/test/cases/type/value_test.rb
index 6edacb9833..55b5d9d584 100644
--- a/activemodel/test/cases/type/value_test.rb
+++ b/activemodel/test/cases/type/value_test.rb
@@ -4,7 +4,7 @@ require "cases/helper"
module ActiveModel
module Type
- class ValueTest < ActiveSupport::TestCase
+ 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