Commit 27f9a15
authored
Avoid warning of potential false positive in API Client tests. (#675)
I was seeing warnings that `expect {}.not_to
raise_error(Faraday::Error)` was risking any other error causing the
test to pass. These test warnings are new (probably introduced in #666).
I think in this particular case it's a deliberate decision to test that
this one error is NOT generated for this one particular status code, so
I rewrote the test to avoid the warning but keep the intent of the test.
## What's changed?
- Rewrote the `does not raise faraday exception for 401` test to expect
an error but assert that it not be a `Faraday::Error`.
## Steps to perform after deploying to production
None. Test change only.1 parent 8f4e628 commit 27f9a15
1 file changed
Lines changed: 3 additions & 1 deletion
File tree
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
0 commit comments