Skip to content

Commit

Permalink
Update from PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
kykyi committed Dec 15, 2024
1 parent a57aac3 commit 36e5f42
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/models/validatable_test.rb
Original file line number Diff line number Diff line change
@@ -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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 36e5f42

Please sign in to comment.