Skip to content

Commit 4dd4abf

Browse files
committed
rm digest_auth tests since rack 3.1 removes support
1 parent 85c8e1a commit 4dd4abf

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

spec/integration/support/application.rb

-16
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,6 @@ def self.respond_with(options = {})
6363
}
6464
end
6565

66-
map "/digest_auth" do
67-
unprotected_app = lambda { |env|
68-
IntegrationServer.respond_with :body => "digest-auth"
69-
}
70-
71-
realm = 'digest-realm'
72-
app = Rack::Auth::Digest::MD5.new(unprotected_app) do |username|
73-
username == 'admin' ? Digest::MD5.hexdigest("admin:#{realm}:secret") : nil
74-
end
75-
app.realm = realm
76-
app.opaque = 'this-should-be-secret'
77-
app.passwords_hashed = true
78-
79-
run app
80-
end
81-
8266
map "/multipart" do
8367
run lambda { |env|
8468
boundary = 'mimepart_boundary'

spec/savon/options_spec.rb

-9
Original file line numberDiff line numberDiff line change
@@ -568,15 +568,6 @@ def to_s
568568
end
569569
end
570570

571-
context "global :digest_auth" do
572-
it "sets the digest auth credentials" do
573-
client = new_client(:endpoint => @server.url(:digest_auth), :digest_auth => ["admin", "secret"])
574-
response = client.call(:authenticate)
575-
576-
expect(response.http.body).to eq("digest-auth")
577-
end
578-
end
579-
580571
context "global :ntlm" do
581572
it "sets the ntlm credentials to use" do
582573
credentials = ["admin", "secret"]

0 commit comments

Comments
 (0)