Files
fizzy/test/controllers/identities_controller_test.rb
T
2025-12-10 09:23:52 +01:00

18 lines
374 B
Ruby

require "test_helper"
class IdentitiesControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "show as JSON" do
identity = identities(:kevin)
untenanted do
get identity_path, as: :json
assert_response :success
assert_equal identity.accounts.count, @response.parsed_body["accounts"].count
end
end
end