]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/AlignArguments in test/integration/api_test/api_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 16:04:53 +0000 (16:04 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Nov 2019 16:04:53 +0000 (16:04 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19026 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/api_test/api_test.rb

index 8b0d9c31bfe1331f09c35fb6ad8518892d256e2e..65db622bc1912ca464a6abca67fcc4806f1194d4 100644 (file)
@@ -25,13 +25,14 @@ class Redmine::ApiTest::ApiTest < Redmine::ApiTest::Base
   def test_api_should_work_with_protect_from_forgery
     ActionController::Base.allow_forgery_protection = true
     assert_difference('User.count') do
-      post '/users.xml',
+      post(
+        '/users.xml',
         :params => {
           :user => {
             :login => 'foo', :firstname => 'Firstname', :lastname => 'Lastname',
             :mail => 'foo@example.net', :password => 'secret123'}
           },
-        :headers => credentials('admin')
+        :headers => credentials('admin'))
       assert_response 201
     end
   ensure