mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 14:26:04 +01:00
cleanup: rubocop: fix Layout/AlignArguments in test/integration/api_test/api_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19026 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -25,13 +25,14 @@ class Redmine::ApiTest::ApiTest < Redmine::ApiTest::Base
|
|||||||
def test_api_should_work_with_protect_from_forgery
|
def test_api_should_work_with_protect_from_forgery
|
||||||
ActionController::Base.allow_forgery_protection = true
|
ActionController::Base.allow_forgery_protection = true
|
||||||
assert_difference('User.count') do
|
assert_difference('User.count') do
|
||||||
post '/users.xml',
|
post(
|
||||||
|
'/users.xml',
|
||||||
:params => {
|
:params => {
|
||||||
:user => {
|
:user => {
|
||||||
:login => 'foo', :firstname => 'Firstname', :lastname => 'Lastname',
|
:login => 'foo', :firstname => 'Firstname', :lastname => 'Lastname',
|
||||||
:mail => 'foo@example.net', :password => 'secret123'}
|
:mail => 'foo@example.net', :password => 'secret123'}
|
||||||
},
|
},
|
||||||
:headers => credentials('admin')
|
:headers => credentials('admin'))
|
||||||
assert_response 201
|
assert_response 201
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
|
|||||||
Reference in New Issue
Block a user