Skip to content

Commit dfd5784

Browse files
committed
💚 Fix tests
1 parent 10a94db commit dfd5784

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.rubocop_gradual.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"app/controllers/masq/passwords_controller.rb:4013562638": [
66
[8, 18, 1, "Lint/AssignmentInCondition: Wrap assignment in parentheses if intentional", 177560]
77
],
8-
"app/controllers/masq/sessions_controller.rb:3600302919": [
8+
"app/controllers/masq/sessions_controller.rb:595937348": [
99
[39, 21, 3, "Style/AndOr: Use `&&` instead of `and`.", 193409806]
1010
],
1111
"lib/masq/authenticated_system.rb:2956957840": [

test/functional/masq/sessions_controller_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_should_set_correct_auth_type_on_login_with_cookie
6666

6767
def test_should_redirect_to_login_after_failed_login
6868
post(:create, params: {login: accounts(:standard).login, password: "bad password"})
69-
assert_redirected_to(login_path)
69+
assert_redirected_to(login_path(error: "incorrect-password"))
7070
assert(flash.any?)
7171
end
7272

@@ -142,7 +142,7 @@ def test_should_authenticate_with_password_and_yubico_otp
142142
def test_should_disallow_password_only_login_when_yubikey_is_mandatory
143143
account = accounts(:with_yubico_identity)
144144
post(:create, params: {login: account.login, password: "test"})
145-
assert_redirected_to(login_path)
145+
assert_redirected_to(login_path(error: "incorrect-password"))
146146
assert(flash.any?)
147147
end
148148

0 commit comments

Comments
 (0)