Files
fizzy/test/controllers/my/identities_controller_test.rb
T
2025-12-10 15:13:35 +01:00

18 lines
381 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.accounts.count, @response.parsed_body["accounts"].count
end
end
end