-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmutant.yml
More file actions
29 lines (29 loc) · 1.04 KB
/
Copy pathmutant.yml
File metadata and controls
29 lines (29 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
usage: opensource
integration:
name: rspec
environment_variables:
COVERAGE: 'false'
includes:
- lib
requires:
- rails
- action_controller/railtie
- action_controller/api
- jsonrpc
matcher:
subjects:
- JSONRPC*
ignore:
# `def method = attributes[:method]` overrides Kernel#method to expose the
# Dry::Struct attribute. Since :method is a required (non-optional) attribute,
# it is always present in `attributes`, making Hash#[] and Hash#fetch
# identical in practice. self[:method] is also equivalent because
# Dry::Struct#[] delegates to attributes.fetch. No test can distinguish
# these forms because constructing a Request without :method is impossible.
- JSONRPC::Request#method
# `responses.map(&:to_response)` and `self.map(&:to_response)` are
# equivalent because BatchResponse#each delegates to responses.each.
# Enumerable#map iterates via each, so both forms call to_response on
# the same objects in the same order. No test can distinguish them.
- JSONRPC::BatchResponse#to_response