Sha256: 7ef2240e4a8d79fd774f8369376702b600bd4378b68d6216fe7d223cb4a56af5

Contents?: true

Size: 406 Bytes

Versions: 15

Compression:

Stored size: 406 Bytes

Contents

require "test_helper"

class Identity::EmailsControllerTest < ActionDispatch::IntegrationTest
  setup do
    @user, @token = sign_in_as(users(:lazaro_nixon))
  end

  def default_headers
    { "Authorization" => "Bearer #{@token}" }
  end

  test "should update email" do
    patch identity_email_url, params: { email: "new_email@hey.com" }, headers: default_headers
    assert_response :success
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
authentication-zero-2.16.5 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.16.4 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.16.3 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.16.2 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.16.1 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.16.0 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.15.9 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.15.8 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.15.7 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.15.6 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.15.5 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.15.4 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.15.3 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.15.2 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt
authentication-zero-2.15.1 lib/generators/authentication/templates/test_unit/controllers/api/identity/emails_controller_test.rb.tt