aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/type/integer_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-11-11 06:43:54 +0900
committerGitHub <noreply@github.com>2017-11-11 06:43:54 +0900
commit24b59434e6aca9679b9f86a41cfbb1a33e3d5619 (patch)
treecea34528ef0ece63ac536bdc6e604d9b3fb78409 /activemodel/test/cases/type/integer_test.rb
parent4528dd6327f35d3139a48cbac9c9192f2253cbad (diff)
downloadrails-24b59434e6aca9679b9f86a41cfbb1a33e3d5619.tar.gz
rails-24b59434e6aca9679b9f86a41cfbb1a33e3d5619.tar.bz2
rails-24b59434e6aca9679b9f86a41cfbb1a33e3d5619.zip
Add missing autoload `Type` (#31123)
Attribute modules (`Attribute`, `Attributes`, `AttributeSet`) uses `Type`, but referencing `Type` before the modules still fail. ``` % ./bin/test -w test/cases/attribute_test.rb -n test_with_value_from_user_validates_the_value Run options: -n test_with_value_from_user_validates_the_value --seed 31876 E Error: ActiveModel::AttributeTest#test_with_value_from_user_validates_the_value: NameError: uninitialized constant ActiveModel::AttributeTest::Type /Users/kamipo/src/github.com/rails/rails/activemodel/test/cases/attribute_test.rb:233:in `block in <class:AttributeTest>' bin/test test/cases/attribute_test.rb:232 Finished in 0.002985s, 335.0479 runs/s, 335.0479 assertions/s. 1 runs, 1 assertions, 0 failures, 1 errors, 0 skips ``` Probably we need more autoloading at least `Type`.
Diffstat (limited to 'activemodel/test/cases/type/integer_test.rb')
-rw-r--r--activemodel/test/cases/type/integer_test.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/activemodel/test/cases/type/integer_test.rb b/activemodel/test/cases/type/integer_test.rb
index d2e635b447..8c5d18c9b3 100644
--- a/activemodel/test/cases/type/integer_test.rb
+++ b/activemodel/test/cases/type/integer_test.rb
@@ -1,7 +1,6 @@
# frozen_string_literal: true
require "cases/helper"
-require "active_model/type"
require "active_support/core_ext/numeric/time"
module ActiveModel