1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Not responding the object on creating unlockable requests

This commit is contained in:
Rodrigo Flores 2011-06-22 23:04:55 -03:00
parent e937cf78cf
commit 308238ab42
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ class Devise::UnlocksController < ApplicationController
if successful_and_sane?(resource)
set_flash_message :notice, :send_instructions if is_navigational_format?
respond_with resource, :location => new_session_path(resource_name)
respond_with({}, :location => new_session_path(resource_name))
else
respond_with_navigational(resource){ render_with_scope :new }
end

View file

@ -113,7 +113,7 @@ class LockTest < ActionController::IntegrationTest
post user_unlock_path(:format => 'xml'), :user => {:email => user.email}
assert_response :success
assert response.body.include? %(<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<user>)
assert_equal response.body, {}.to_xml
assert_equal 1, ActionMailer::Base.deliveries.size
end