1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
yuuji.yaginuma 2017-02-06 18:06:09 +09:00
parent b9ae7481fd
commit 4f8d86c822
4 changed files with 5 additions and 6 deletions

View file

@ -1,3 +1,7 @@
* Remove unused `ActiveModel::TestCase` class.
*Yuji Yaginuma*
* Moved DecimalWithoutScale, Text, and UnsignedInteger from Active Model to Active Record
*Iain Beeston*

View file

@ -42,7 +42,6 @@ module ActiveModel
autoload :Naming
autoload :SecurePassword
autoload :Serialization
autoload :TestCase
autoload :Translation
autoload :Validations
autoload :Validator

View file

@ -1,4 +0,0 @@
module ActiveModel #:nodoc:
class TestCase < ActiveSupport::TestCase #:nodoc:
end
end

View file

@ -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