628a43ef61
Include identity.id in the my/identity.json response and return an empty body from the CREATE signup/completions.json endpoint. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
441 B
Ruby
19 lines
441 B
Ruby
require "test_helper"
|
|
|
|
class My::IdentitiesControllerTest < ActionDispatch::IntegrationTest
|
|
setup do
|
|
sign_in_as :kevin
|
|
end
|
|
|
|
test "show as JSON" do
|
|
identity = identities(:kevin)
|
|
|
|
untenanted do
|
|
get my_identity_path, as: :json
|
|
assert_response :success
|
|
assert_equal identity.id, @response.parsed_body["id"]
|
|
assert_equal identity.accounts.count, @response.parsed_body["accounts"].count
|
|
end
|
|
end
|
|
end
|