Fix ActiveRecord deprecation errors in pages_domain_spec.rb
What does this MR do and why?
This fixes the following deprecation warnings:
DEPRECATION WARNING: ActiveModel::Errors#keys is deprecated and will
be removed in Rails 6.2.
To achieve the same use:
errors.attribute_names
How to set up and validate locally
Run rspec spec/models/pages_domain_spec.rb
.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Stan Hu