Skip to content

Commit 36e5f42

Browse files
committed
Update from PR review
1 parent a57aac3 commit 36e5f42

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/models/validatable_test.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# encoding: UTF-8
22
# frozen_string_literal: true
3-
require "test_helper"
3+
require 'test_helper'
44

55
class ValidatableTest < ActiveSupport::TestCase
6-
test 'should require email to be set' do
6+
test 'should require email to be set' do
77
user = new_user(email: nil)
88
assert user.invalid?
99
assert user.errors[:email]
@@ -191,7 +191,6 @@ class ValidatableTest < ActiveSupport::TestCase
191191
def with_password_requirement(requirement, value)
192192
# Change the password requirement and restore it after the block is executed
193193
original_password_complexity= User.public_send("password_complexity")
194-
original_value = original_password_complexity[requirement]
195194

196195
updated_password_complexity = original_password_complexity.dup
197196
updated_password_complexity[requirement] = value

0 commit comments

Comments
 (0)