aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-02-06 18:06:09 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-02-07 07:46:52 +0900
commit4f8d86c822b5ceebbd1616f3329fbdf40d3f8431 (patch)
treea81a698b892edcdad803b2c8a8373d42b3d2714d
parentb9ae7481fd5653fc6430148f06e0fca27317829e (diff)
downloadrails-4f8d86c822b5ceebbd1616f3329fbdf40d3f8431.tar.gz
rails-4f8d86c822b5ceebbd1616f3329fbdf40d3f8431.tar.bz2
rails-4f8d86c822b5ceebbd1616f3329fbdf40d3f8431.zip
Remove `ActiveModel::TestCase` from lib
`ActiveModel::TestCase` is used only for the test of Active Model. Also, it is a private API and can not be used in applications. Therefore, it is not necessary to include it in lib.
-rw-r--r--activemodel/CHANGELOG.md4
-rw-r--r--activemodel/lib/active_model.rb1
-rw-r--r--activemodel/lib/active_model/test_case.rb4
-rw-r--r--activemodel/test/cases/helper.rb2
4 files changed, 5 insertions, 6 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md
index 853a1e7d9d..41051b1315 100644
--- a/activemodel/CHANGELOG.md
+++ b/activemodel/CHANGELOG.md
@@ -1,3 +1,7 @@
+* Remove unused `ActiveModel::TestCase` class.
+
+ *Yuji Yaginuma*
+
* Moved DecimalWithoutScale, Text, and UnsignedInteger from Active Model to Active Record
*Iain Beeston*
diff --git a/activemodel/lib/active_model.rb b/activemodel/lib/active_model.rb
index 8163856a46..2389c858d5 100644
--- a/activemodel/lib/active_model.rb
+++ b/activemodel/lib/active_model.rb
@@ -42,7 +42,6 @@ module ActiveModel
autoload :Naming
autoload :SecurePassword
autoload :Serialization
- autoload :TestCase
autoload :Translation
autoload :Validations
autoload :Validator
diff --git a/activemodel/lib/active_model/test_case.rb b/activemodel/lib/active_model/test_case.rb
deleted file mode 100644
index 5004855d56..0000000000
--- a/activemodel/lib/active_model/test_case.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-module ActiveModel #:nodoc:
- class TestCase < ActiveSupport::TestCase #:nodoc:
- end
-end
diff --git a/activemodel/test/cases/helper.rb b/activemodel/test/cases/helper.rb
index 40dfb8e589..eeb5c85a48 100644
--- a/activemodel/test/cases/helper.rb
+++ b/activemodel/test/cases/helper.rb
@@ -9,7 +9,7 @@ I18n.enforce_available_locales = false
require "active_support/testing/autorun"
require "active_support/testing/method_call_assertions"
-class ActiveModel::TestCase
+class ActiveModel::TestCase < ActiveSupport::TestCase
include ActiveSupport::Testing::MethodCallAssertions
# Skips the current run on Rubinius using Minitest::Assertions#skip