Commit a545c46
committed
Remove expects(:token).never assertion
The test already verifies correct behavior via WebMock:
stub_request(:get, url).with(basic_auth: [...])
If set_auth_from_token! incorrectly runs, it overwrites the
Authorization header with "token ...", which won't match the
basic_auth expectation and WebMock rejects the request.
Originally added in 39f2d9e.1 parent 7e813a7 commit a545c46
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
18 | | - | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
| |||
0 commit comments