Sha256: ddc5c42bb542d683be92bf97ac98f2de4a328f53fc27ab9f0af222e001e9df91
Contents?: true
Size: 714 Bytes
Versions: 6
Compression:
Stored size: 714 Bytes
Contents
require "test_helper" class Identity::EmailsControllerTest < ActionDispatch::IntegrationTest setup do @user = sign_in_as(users(:lazaro_nixon)) end test "should get edit" do get edit_identity_email_url assert_response :success end test "should update email" do patch identity_email_url, params: { email: "new_email@hey.com", password_challenge: "Secret1*3*5*" } assert_redirected_to root_url end test "should not update email with wrong password challenge" do patch identity_email_url, params: { email: "new_email@hey.com", password_challenge: "SecretWrong1*3" } assert_response :unprocessable_entity assert_select "li", /Password challenge is invalid/ end end
Version data entries
6 entries across 6 versions & 1 rubygems