spec/rack/test/digest_auth_spec.rb in rack-test-0.5.4 vs spec/rack/test/digest_auth_spec.rb in rack-test-0.5.5

- old
+ new

@@ -10,17 +10,9 @@ app.realm = 'WallysWorld' app.opaque = 'this-should-be-secret' app end - def be_challenge - simple_matcher "a HTTP Digest challenge response" do |response| - response.status == 401 && - response['WWW-Authenticate'] =~ /^Digest / && - response.body.empty? - end - end - it 'incorrectly authenticates GETs' do digest_authorize 'foo', 'bar' get '/' last_response.should be_challenge end