Skip to content
代码片段 群组 项目
提交 19a5cdc7 编辑于 作者: Alex Kalderimis's avatar Alex Kalderimis 提交者: Matthias Käppler
浏览文件

Adds `a_graphql_entity_for`, a general matcher

This adds `GraphqlHelpers#a_graphql_entity_for`, which helps us write
expectations about results from GraphQL queries. In addition to the main
reason for this matcher (abstracting over `id: global_id_of(thing)`
checks), it handles simple field/method-name mappings and custom field
mappings, which accounts for 95% of all use cases.

This matcher can be converted back to a hash, which means it can be
destructured as `**a_graphql_entity_for(model)`.
上级 1e2dcb5f
No related branches found
No related tags found
加载中
显示
66 个添加62 个删除
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册