summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issue_relations_controller_test.rb46
-rw-r--r--test/functional/users_controller_test.rb23
2 files changed, 39 insertions, 30 deletions
diff --git a/test/functional/issue_relations_controller_test.rb b/test/functional/issue_relations_controller_test.rb
index e34716df4..420d7e2d9 100644
--- a/test/functional/issue_relations_controller_test.rb
+++ b/test/functional/issue_relations_controller_test.rb
@@ -243,17 +243,20 @@ class IssueRelationsControllerTest < Redmine::ControllerTest
def test_bulk_create_with_multiple_issue_to_id_issues
assert_difference 'IssueRelation.count', +3 do
- post :create, :params => {
- :issue_id => 1,
- :relation => {
- # js autocomplete adds a comma at the end
- # issue to id should accept both id and hash with id
- :issue_to_id => '2,3,#7, ',
- :relation_type => 'relates',
- :delay => ''
- }
- },
- :xhr => true
+ post(
+ :create,
+ :params => {
+ :issue_id => 1,
+ :relation => {
+ # js autocomplete adds a comma at the end
+ # issue to id should accept both id and hash with id
+ :issue_to_id => '2,3,#7, ',
+ :relation_type => 'relates',
+ :delay => ''
+ }
+ },
+ :xhr => true
+ )
end
assert_response :success
@@ -269,15 +272,18 @@ class IssueRelationsControllerTest < Redmine::ControllerTest
def test_bulk_create_should_show_errors
with_settings :cross_project_issue_relations => '0' do
assert_difference 'IssueRelation.count', +3 do
- post :create, :params => {
- :issue_id => 1,
- :relation => {
- :issue_to_id => '1,2,3,4,5,7',
- :relation_type => 'relates',
- :delay => ''
- }
- },
- :xhr => true
+ post(
+ :create,
+ :params => {
+ :issue_id => 1,
+ :relation => {
+ :issue_to_id => '1,2,3,4,5,7',
+ :relation_type => 'relates',
+ :delay => ''
+ }
+ },
+ :xhr => true
+ )
end
end
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index 40d842607..e753c3873 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -682,16 +682,19 @@ class UsersControllerTest < Redmine::ControllerTest
end
def test_update_without_generate_password_should_not_change_password
- put :update, :params => {
- :id => 2, :user => {
- :firstname => 'changed',
- :generate_password => '0',
- :password => '',
- :password_confirmation => ''
- },
- :send_information => '1'
- }
-
+ put(
+ :update,
+ :params => {
+ :id => 2,
+ :user => {
+ :firstname => 'changed',
+ :generate_password => '0',
+ :password => '',
+ :password_confirmation => ''
+ },
+ :send_information => '1'
+ }
+ )
user = User.find(2)
assert_equal 'changed', user.firstname
assert user.check_password?('jsmith')