spec/slack/web/api/endpoints/custom_specs/auth_spec.rb in slack-ruby-client-0.17.0 vs spec/slack/web/api/endpoints/custom_specs/auth_spec.rb in slack-ruby-client-1.0.0

- old
+ new

@@ -16,14 +16,12 @@ end end context '429 error', vcr: { cassette_name: 'web/429_error' } do it 'fails with an specific exception' do - begin - client.auth_test - rescue Slack::Web::Api::Errors::TooManyRequestsError => e - expect(e.message).to eq('Retry after 3600 seconds') - expect(e.retry_after).to eq(3600) - end + client.auth_test + rescue Slack::Web::Api::Errors::TooManyRequestsError => e + expect(e.message).to eq('Retry after 3600 seconds') + expect(e.retry_after).to eq(3600) end end end