summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 02:19:38 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 02:19:38 +0000
commit90347291751e90c8bdc4b9479d474991dd374eea (patch)
treeba1c6da43eba80276cc7fff6ccab534c8835a1c6 /test/integration
parent5d543b637e0e52259b0abd980794549500a4622e (diff)
downloadredmine-90347291751e90c8bdc4b9479d474991dd374eea.tar.gz
redmine-90347291751e90c8bdc4b9479d474991dd374eea.zip
cleanup: rubocop: fix Layout/AlignArguments in test/integration/api_test/my_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18978 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/api_test/my_test.rb22
1 files changed, 12 insertions, 10 deletions
diff --git a/test/integration/api_test/my_test.rb b/test/integration/api_test/my_test.rb
index 8c70ea9a4..1749b709a 100644
--- a/test/integration/api_test/my_test.rb
+++ b/test/integration/api_test/my_test.rb
@@ -34,14 +34,15 @@ class Redmine::ApiTest::MyTest < Redmine::ApiTest::Base
end
test "PUT /my/account.xml with valid parameters should update the user" do
- put '/my/account.xml',
+ put(
+ '/my/account.xml',
:params => {
:user => {
:firstname => 'Dave', :lastname => 'Renamed',
:mail => 'dave@somenet.foo'
}
},
- :headers => credentials('dlopper', 'foo')
+ :headers => credentials('dlopper', 'foo'))
assert_response :no_content
assert_equal '', @response.body
@@ -53,14 +54,15 @@ class Redmine::ApiTest::MyTest < Redmine::ApiTest::Base
end
test "PUT /my/account.json with valid parameters should update the user" do
- put '/my/account.xml',
+ put(
+ '/my/account.xml',
:params => {
:user => {
:firstname => 'Dave', :lastname => 'Renamed',
:mail => 'dave@somenet.foo'
}
},
- :headers => credentials('dlopper', 'foo')
+ :headers => credentials('dlopper', 'foo'))
assert_response :no_content
assert_equal '', @response.body
assert user = User.find_by_lastname('Renamed')
@@ -71,28 +73,28 @@ class Redmine::ApiTest::MyTest < Redmine::ApiTest::Base
end
test "PUT /my/account.xml with invalid parameters" do
- put '/my/account.xml',
+ put(
+ '/my/account.xml',
:params => {
:user => {
:login => 'dlopper', :firstname => '', :lastname => 'Lastname'
}
},
- :headers => credentials('dlopper', 'foo')
-
+ :headers => credentials('dlopper', 'foo'))
assert_response :unprocessable_entity
assert_equal 'application/xml', @response.content_type
assert_select 'errors error', :text => "First name cannot be blank"
end
test "PUT /my/account.json with invalid parameters" do
- put '/my/account.json',
+ put(
+ '/my/account.json',
:params => {
:user => {
:login => 'dlopper', :firstname => '', :lastname => 'Lastname'
}
},
- :headers => credentials('dlopper', 'foo')
-
+ :headers => credentials('dlopper', 'foo'))
assert_response :unprocessable_entity
assert_equal 'application/json', @response.content_type
json = ActiveSupport::JSON.decode(response.body)