+
+ def test_index_anonymous
+ get api_user_traces_path
+ assert_response :unauthorized
+ end
+
+ def test_index_no_scope
+ user = create(:user)
+ bad_auth = bearer_authorization_header user, :scopes => %w[]
+
+ get api_user_traces_path, :headers => bad_auth
+ assert_response :forbidden
+ end