From 36e5f42e45d32ce3a39c497d3499e7b104943ada Mon Sep 17 00:00:00 2001 From: Baden Ashford Date: Mon, 16 Dec 2024 09:33:32 +1100 Subject: [PATCH] Update from PR review --- test/models/validatable_test.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/models/validatable_test.rb b/test/models/validatable_test.rb index b0b7891cc..76b410854 100644 --- a/test/models/validatable_test.rb +++ b/test/models/validatable_test.rb @@ -1,9 +1,9 @@ # encoding: UTF-8 # frozen_string_literal: true -require "test_helper" +require 'test_helper' class ValidatableTest < ActiveSupport::TestCase - test 'should require email to be set' do + test 'should require email to be set' do user = new_user(email: nil) assert user.invalid? assert user.errors[:email] @@ -191,7 +191,6 @@ class ValidatableTest < ActiveSupport::TestCase def with_password_requirement(requirement, value) # Change the password requirement and restore it after the block is executed original_password_complexity= User.public_send("password_complexity") - original_value = original_password_complexity[requirement] updated_password_complexity = original_password_complexity.dup updated_password_complexity[requirement] = value