search for: encode_credentials

Displaying 1 result from an estimated 1 matches for "encode_credentials".

2007 Dec 23
1
multiple scenarios problem
...uthorized" end end Scenario "user authenticates so the page should return 200" do Given "a user"; end When "visiting", "working_page" do |page| get page, nil, :authorization => ActionController::HttpAuthentication::Basic.encode_credentials("name", "pass") end Then "I''m logged in" do response.should be_success end end What happens is that the second scenario''s response is also returning 401 and if I switch the order of the two scenarios, the second scenari...