Add validation for terms of service acceptance on Profile

Signed-off-by: marcheing's avatarHeitor Reis <marcheing@gmail.com>
parent 89db3df2
Pipeline #3598424 failed with stage
in 8 minutes and 43 seconds
......@@ -12,6 +12,7 @@ RSpec.describe Profile, type: :model do
%i(first_name last_name country state city zip_code gender occupation).each do |field|
it { is_expected.to validate_presence_of field }
end
it { is_expected.to validate_acceptance_of :terms_of_service }
end
describe 'fields that are conditionally required' do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment