test/integration/authenticatable_test.rb in devise-2.1.4 vs test/integration/authenticatable_test.rb in devise-2.2.0.rc

- old
+ new

@@ -454,11 +454,11 @@ test 'sign in stub in xml format' do get new_user_session_path(:format => 'xml') assert_match '<?xml version="1.0" encoding="UTF-8"?>', response.body assert_match /<user>.*<\/user>/m, response.body assert_match '<email></email>', response.body - assert_match '<password nil="true"></password>', response.body + assert_match '<password nil="true"', response.body end test 'sign in stub in json format' do get new_user_session_path(:format => 'json') assert_match '{"user":{', response.body @@ -481,26 +481,26 @@ assert_not warden.authenticated?(:admin) end test 'sign in with xml format returns xml response' do create_user - post user_session_path(:format => 'xml'), :user => {:email => "user@test.com", :password => '123456'} + post user_session_path(:format => 'xml'), :user => {:email => "user@test.com", :password => '12345678'} assert_response :success assert response.body.include? %(<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<user>) end test 'sign in with xml format is idempotent' do get new_user_session_path(:format => 'xml') assert_response :success create_user - post user_session_path(:format => 'xml'), :user => {:email => "user@test.com", :password => '123456'} + post user_session_path(:format => 'xml'), :user => {:email => "user@test.com", :password => '12345678'} assert_response :success get new_user_session_path(:format => 'xml') assert_response :success - post user_session_path(:format => 'xml'), :user => {:email => "user@test.com", :password => '123456'} + post user_session_path(:format => 'xml'), :user => {:email => "user@test.com", :password => '12345678'} assert_response :success assert response.body.include? %(<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<user>) end test 'sign out with xml format returns ok response' do