zync icon indicating copy to clipboard operation
zync copied to clipboard

Do not use begin/rescue in tests

Open hallelujah opened this issue 5 years ago • 0 comments

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

hallelujah avatar Jun 04 '19 09:06 hallelujah