1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/validations
Daniel Colson 7f938cacba
Replace test Man with Human
The commit replaces the `Man` model used in tests with a `Human` model. It
also replaces the existing `Human` model with a `SuperHuman` model
inheriting from `Human`.

While this may seem like a cosmetic change, I see it as more of an
inclusivity change. I think it makes sense for a number of reasons:

* Prior to this commit the `Human` model inherited from `Man`. At best
  this makes no sense (it should be the other way around). At worst it
  is offensive and harmful to the community.
* It doesn't seem inclusive to me to have exclusively male-gendered
  examples in the codebase.
* There is no particular reason for these examples to be gendered.
* `man` is hard to grep for, since it also matches `many, manager,
  manual, etc`

For the most part this is a simple search and replace. The one exception
to that is that I had to add the table name to the model so we could use
"humans" instead of "humen".
2020-08-14 11:37:09 -04:00
..
absence_validation_test.rb Replace test Man with Human 2020-08-14 11:37:09 -04:00
association_validation_test.rb Replace test Man with Human 2020-08-14 11:37:09 -04:00
i18n_generate_message_validation_test.rb
i18n_validation_test.rb Move the ActiveModel:Errors#full_message method to the Error class: 2019-07-16 14:28:38 +02:00
length_validation_test.rb
numericality_validation_test.rb Add scale support to ActiveRecord::Validations::NumericalityValidator 2020-01-13 11:00:22 -05:00
presence_validation_test.rb Replace test Man with Human 2020-08-14 11:37:09 -04:00
uniqueness_validation_test.rb Allow attribute aliases for validates_uniqueness_of 2020-06-01 22:44:39 +09:00