1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/cases
Eugene Kenny d2e2ca0d0f Always load validator class to verify it exists
When updating our app for 9def05385f, I
found several incorrectly configured validations that looked like this:

    validates :name, uniqueness: true, case_sensitive: false

The intent is clearly for `case_sensitive: false` to be passed as an
option to the uniqueness validator, but instead it's being passed as
its own separate validation. Because the value `false` disables the
validation, the validator class isn't loaded and the failure is silent.

The validator should always be loaded, even if it's disabled, to ensure
it exists and avoid configuration errors like the one described above.
2019-08-26 11:52:34 +01:00
..
serializers Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
type Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
validations Always load validator class to verify it exists 2019-08-26 11:52:34 +01:00
attribute_assignment_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
attribute_methods_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
attribute_set_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
attribute_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
attributes_dirty_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
attributes_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
callbacks_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
conversion_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
dirty_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
error_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
errors_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
forbidden_attributes_protection_test.rb Use frozen string literal in activemodel/ 2017-07-16 20:11:16 +03:00
helper.rb Revert "MethodCallAssertions is a regular player of the team ActiveSupport::TestCase now" 2019-08-02 00:24:21 -04:00
lint_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
model_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
naming_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
nested_error_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
railtie_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
secure_password_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
serialization_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
translation_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00
validations_test.rb Revert "No such class since 8d2866bb80fbe81acb04f5b0c44f152f571fb29f" 2019-08-02 00:25:13 -04:00