zync
zync copied to clipboard
Do not use begin/rescue in tests
Fixes https://github.com/3scale/zync/pull/196#discussion_r290183155
When fetching headers, we rescue any authentication error and set the headers as application/json https://github.com/3scale/zync/blob/464cd87fda2275468ad4a94d9fbb54cfe98df10e/app/adapters/generic_adapter.rb#L136
The test rescues an error that is never raised