spec/ramaze/helper/httpdigest.rb in ramaze-2009.05 vs spec/ramaze/helper/httpdigest.rb in ramaze-2009.06

- old
+ new

@@ -47,11 +47,11 @@ end end describe Ramaze::Helper::HttpDigest do describe 'headers' do - behaves_like :mock + behaves_like :rack_test it 'sends out all the required header information' do get '/authenticate' www_authenticate = last_response.headers['WWW-Authenticate'] authorization = Rack::Auth::Digest::Params.parse(www_authenticate) @@ -70,11 +70,11 @@ end __END__ describe 'Digest authentication' do - behaves_like :mock + behaves_like :rack_test it 'authenticates a user with a block' do digest_authorize 'foo', 'oof' get '/authenticate' last_response.status.should == 200 @@ -88,10 +88,10 @@ last_response.body.should == "Unauthorized" end end describe 'Plaintext authentication' do - behaves_like :mock + behaves_like :rack_test it 'authenticates a user with the plaintext method' do get '/plaintext/authenticate' last_response.status.should == 401 last_response.body.should == 'Unauthorized'