Join GitHub today
validate_presence_of relies on the constant ActiveModel::SecurePassword::InstanceMethodsOnActivation
which has been removed in Rails 6 rails/rails@08dde0f#diff-a6f9af64a6d420eb1103e16c0a0a8f04L66
It would be really nice to have this fixed with new version of rails around the corner.
As a temporary workaround (as I did not need the password matchers) I used:
# spec/rails_helper.rb - add to bottom class ActiveModel::SecurePassword::InstanceMethodsOnActivation; end;