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
Yves Senn 8c1687bbf8 has_secure_password is not invalid when assigning empty Strings.
Closes #9535.

With 692b3b6 the `password=` setter does no longer set blank passwords.
This triggered validation errors when assigning empty Strings to `password`
and `password_confirmation`.

This patch only sets the confirmation if it is not `blank?`.
2013-03-04 18:56:05 +01:00
..
serializers chmod -x from non-script files 2012-12-24 23:36:19 +09:00
validations validates_confirmation_of does not override writer methods. 2013-03-04 18:51:34 +01:00
attribute_methods_test.rb made dynamic finders alias_attribute aware 2012-06-22 16:44:01 +02:00
callbacks_test.rb Use run_callbacks; the generated _run_<name>_callbacks method is not a public interface. 2011-01-31 19:45:53 -02:00
conversion_test.rb test for ActiveModel::Conversion#to_partial_path and namespaced models 2013-01-14 21:17:22 +01:00
deprecated_mass_assignment_security_test.rb attr_accessible and attr_protected raise an exception pointing to use plugin or new protection model 2012-09-16 23:58:21 -05:00
dirty_test.rb Cleaning up ActiveModel::Dirty tests 2013-01-15 10:24:57 -05:00
errors_test.rb added more accurate test for add_on_empty 2013-02-19 18:48:37 +01:00
forbidden_attributes_protection_test.rb Don't use assert_nothing_raised when assert_equal is used 2012-09-16 23:58:21 -05:00
helper.rb Add active_support/testing/autorun 2012-12-31 13:57:24 -03:00
lint_test.rb Trim down Active Model API by removing valid? and errors.full_messages 2012-02-07 23:10:43 +01:00
model_test.rb Adding tests for ActiveModel::Model 2013-01-12 20:04:24 -05:00
naming_test.rb Adding the route_key and param_key tests 2013-01-22 22:13:43 -05:00
railtie_test.rb Merge pull request #8320 from senny/active_model_log_folder 2012-11-26 15:32:25 -02:00
secure_password_test.rb has_secure_password is not invalid when assigning empty Strings. 2013-03-04 18:56:05 +01:00
serialization_test.rb Use respond_to?(:to_ary) rather than is_a?(Enumerable) to detect collection-thing. 2012-05-11 20:11:04 +01:00
translation_test.rb Fix human attribute_name to handle deeply nested attributes 2012-05-16 08:39:48 +09:00
validations_test.rb Revert "Merge pull request #7826 from sikachu/master-validators-kind" 2012-10-02 23:57:00 -03:00