Skip to content

Commit

Permalink
Revert "just skip it"
Browse files Browse the repository at this point in the history
This reverts commit 74b16aa.
  • Loading branch information
mtollie committed Apr 26, 2024
1 parent 74b16aa commit c0cfce4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/graphql/authorization_spec.rb
Expand Up @@ -714,13 +714,13 @@ def auth_execute(*args, **kwargs)
assert_nil edge.fetch("node")
assert_equal "RelayObjectEdge", edge["__typename"]

# unauthorized_object_paths = [
# ["unauthorizedConnection", "edges", 0, "node"],
# ["unauthorizedConnection", "nodes", 0],
# ["unauthorizedEdge", "node"]
# ]
#
# assert_equal unauthorized_object_paths, unauthorized_res["errors"].map { |e| e["path"] }
unauthorized_object_paths = [
["unauthorizedConnection", "edges", 0, "node"],
["unauthorizedConnection", "nodes", 0],
["unauthorizedEdge", "node"]
]

assert_equal unauthorized_object_paths, unauthorized_res["errors"].map { |e| e["path"] }

authorized_res = auth_execute(query)
conn = authorized_res["data"].fetch("unauthorizedConnection")
Expand Down

0 comments on commit c0cfce4

Please sign in to comment.