diff --git a/spec/httparty/net_digest_auth_spec.rb b/spec/httparty/net_digest_auth_spec.rb index 8ead743..087cbd2 100644 --- a/spec/httparty/net_digest_auth_spec.rb +++ b/spec/httparty/net_digest_auth_spec.rb @@ -154,17 +154,11 @@ RSpec.describe Net::HTTPHeader::DigestAuthenticator do context "with http basic auth response when net digest auth expected" do it "should not fail" do - # fails already so it is defined here - begin - @digest = setup_digest({ - 'www-authenticate' => 'WWW-Authenticate: Basic realm="testrealm.com""' - }) - - expect(authorization_header).to include("Digest") - rescue => e - fail "Should not fail on different authentification method" - end + @digest = setup_digest({ + 'www-authenticate' => 'WWW-Authenticate: Basic realm="testrealm.com""' + }) + expect(authorization_header).to include("Digest") end end