mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
Enables API access to /my/account for updating user account data (#31399).
Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@18257 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -382,7 +382,7 @@ class MyControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
|
||||
def test_update_account
|
||||
post :account, :params => {
|
||||
put :account, :params => {
|
||||
:user => {
|
||||
:firstname => "Joe",
|
||||
:login => "root",
|
||||
@@ -407,7 +407,7 @@ class MyControllerTest < Redmine::ControllerTest
|
||||
|
||||
def test_update_account_should_send_security_notification
|
||||
ActionMailer::Base.deliveries.clear
|
||||
post :account, :params => {
|
||||
put :account, :params => {
|
||||
:user => {
|
||||
:mail => 'foobar@example.com'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user