summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-06-06 14:53:23 +0000
committerGo MAEDA <maeda@farend.jp>2019-06-06 14:53:23 +0000
commitadebf4da1dba677f137b65be56d981ca1e2cef3d (patch)
tree63ced2a2d9a15f055b61620b9fa76fcc7a377510 /test/integration
parent7ba7a19cf6047d5428069d6b4a57a5f8859f6826 (diff)
downloadredmine-adebf4da1dba677f137b65be56d981ca1e2cef3d.tar.gz
redmine-adebf4da1dba677f137b65be56d981ca1e2cef3d.zip
Remove trailing whitespaces from test (#31506).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18233 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/account_test.rb4
-rw-r--r--test/integration/admin_test.rb2
-rw-r--r--test/integration/api_test/issue_categories_test.rb2
-rw-r--r--test/integration/api_test/search_test.rb2
-rw-r--r--test/integration/issues_test.rb6
-rw-r--r--test/integration/sudo_mode_test.rb2
6 files changed, 9 insertions, 9 deletions
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb
index 572a2b9e9..37f812e45 100644
--- a/test/integration/account_test.rb
+++ b/test/integration/account_test.rb
@@ -60,14 +60,14 @@ class AccountTest < Redmine::IntegrationTest
assert_equal 'autologin', token.action
assert_equal user.id, session[:user_id]
assert_equal token.value, cookies['autologin']
-
+
# Session is cleared
reset!
User.current = nil
# Clears user's last login timestamp
user.update_attribute :last_login_on, nil
assert_nil user.reload.last_login_on
-
+
# User comes back with user's autologin cookie
cookies[:autologin] = token.value
get '/my/page'
diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb
index ffe319819..09cc909d5 100644
--- a/test/integration/admin_test.rb
+++ b/test/integration/admin_test.rb
@@ -53,7 +53,7 @@ class AdminTest < Redmine::IntegrationTest
put "/users/#{user.id}", :params => {
:id => user.id,
:user => {
- :status => User::STATUS_LOCKED
+ :status => User::STATUS_LOCKED
}
}
assert_redirected_to "/users/#{ user.id }/edit"
diff --git a/test/integration/api_test/issue_categories_test.rb b/test/integration/api_test/issue_categories_test.rb
index 2f190c9c0..da9cd6d20 100644
--- a/test/integration/api_test/issue_categories_test.rb
+++ b/test/integration/api_test/issue_categories_test.rb
@@ -97,7 +97,7 @@ class Redmine::ApiTest::IssueCategoriesTest < Redmine::ApiTest::Base
assert_equal '', @response.body
assert_nil IssueCategory.find_by_id(1)
end
-
+
test "DELETE /issue_categories/:id.xml should reassign issues with :reassign_to_id param" do
issue_count = Issue.where(:category_id => 1).count
assert issue_count > 0
diff --git a/test/integration/api_test/search_test.rb b/test/integration/api_test/search_test.rb
index 95baff59e..891090140 100644
--- a/test/integration/api_test/search_test.rb
+++ b/test/integration/api_test/search_test.rb
@@ -91,7 +91,7 @@ class Redmine::ApiTest::SearchTest < Redmine::ApiTest::Base
assert_equal 4, json['limit']
assert_equal issue[8..10], json['results'].map {|r| r['id']}
end
-
+
test "GET /search.xml should not quick jump to the issue with given id" do
get '/search.xml', :params => {:q => '3'}
assert_response :success
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index ecd7af6ac..2636df912 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -130,7 +130,7 @@ class IssuesTest < Redmine::IntegrationTest
get '/projects/ecookbook/issues?set_filter=1&group_by=fixed_version&sort=priority:desc,fixed_version,id'
assert_response :success
assert_select 'td.id', :text => '5'
-
+
get '/issues/5'
assert_response :success
assert_select '.next-prev-links .position', :text => '5 of 6'
@@ -142,7 +142,7 @@ class IssuesTest < Redmine::IntegrationTest
get '/projects/ecookbook/issues?set_filter=1&tracker_id=1'
assert_response :success
assert_select 'td.id', :text => '5'
-
+
get '/issues/5'
assert_response :success
assert_select '.next-prev-links .position', :text => '3 of 5'
@@ -160,7 +160,7 @@ class IssuesTest < Redmine::IntegrationTest
get "/projects/ecookbook/issues?set_filter=1&query_id=#{query.id}"
assert_response :success
assert_select 'td.id', :text => '5'
-
+
get '/issues/5'
assert_response :success
assert_select '.next-prev-links .position', :text => '6 of 8'
diff --git a/test/integration/sudo_mode_test.rb b/test/integration/sudo_mode_test.rb
index b461c2f18..b7d9cb5d7 100644
--- a/test/integration/sudo_mode_test.rb
+++ b/test/integration/sudo_mode_test.rb
@@ -186,7 +186,7 @@ class SudoModeTest < Redmine::IntegrationTest
}
},
:headers => credentials('admin')
-
+
assert_response :created
end
end