test/integration/totps_test.rb in quo_vadis-2.0.2 vs test/integration/totps_test.rb in quo_vadis-2.1.0
- old
+ new
@@ -72,10 +72,10 @@
test 'failed authentication with second factor' do
User.last.qv_account.create_totp(last_used_at: 1.minute.ago)
post quo_vadis.authenticate_totps_path(totp: '123456')
refute QuoVadis::Session.last.second_factor_authenticated?
- assert_response :success
+ assert_response :unprocessable_entity
assert_equal 'Sorry, the code was incorrect. Please check your system clock is correct and try again.', flash[:alert]
end
test '2fa code reused' do