Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
Update test

Use current_page?

Remove current_page
  • Loading branch information
ericherscovich committed Jul 13, 2023
1 parent 199db70 commit d6edc00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/settings_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SettingsControllerTest < ActionController::TestCase

context "user has mfa disabled" do
setup { get :edit }
should "flash setup_required_html warning message" do
should "flash a warning message" do
assert_response :success
assert page.has_content? "For protection of your account and your gems, you are required to set up multi-factor authentication."
end
Expand Down
1 change: 1 addition & 0 deletions test/system/multifactor_auths_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def redirect_test_mfa_disabled(path)
visit path

assert(page.has_content?("you are required to set up multi-factor authentication"))
assert_current_path(edit_settings_path)

click_button "Register a new device"
totp = ROTP::TOTP.new(otp_key)
Expand Down

0 comments on commit d6edc00

Please sign in to comment.