Files
fizzy/test/controllers/my/identities_controller_test.rb
T
Rosa Gutierrez 628a43ef61 Small native API changes: include identity ID, return empty signup completion body
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>
2026-02-25 14:34:09 +01:00

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