mirror of
https://github.com/meineerde/redmine.git
synced 2026-04-07 00:11:40 +00:00
Fix RuboCop offense Layout/FirstHashElementIndentation (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@21696 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9cebd79b4e
commit
856f104031
@ -243,17 +243,20 @@ class IssueRelationsControllerTest < Redmine::ControllerTest
|
|||||||
|
|
||||||
def test_bulk_create_with_multiple_issue_to_id_issues
|
def test_bulk_create_with_multiple_issue_to_id_issues
|
||||||
assert_difference 'IssueRelation.count', +3 do
|
assert_difference 'IssueRelation.count', +3 do
|
||||||
post :create, :params => {
|
post(
|
||||||
:issue_id => 1,
|
:create,
|
||||||
:relation => {
|
:params => {
|
||||||
# js autocomplete adds a comma at the end
|
:issue_id => 1,
|
||||||
# issue to id should accept both id and hash with id
|
:relation => {
|
||||||
:issue_to_id => '2,3,#7, ',
|
# js autocomplete adds a comma at the end
|
||||||
:relation_type => 'relates',
|
# issue to id should accept both id and hash with id
|
||||||
:delay => ''
|
:issue_to_id => '2,3,#7, ',
|
||||||
}
|
:relation_type => 'relates',
|
||||||
},
|
:delay => ''
|
||||||
:xhr => true
|
}
|
||||||
|
},
|
||||||
|
:xhr => true
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
assert_response :success
|
assert_response :success
|
||||||
@ -269,15 +272,18 @@ class IssueRelationsControllerTest < Redmine::ControllerTest
|
|||||||
def test_bulk_create_should_show_errors
|
def test_bulk_create_should_show_errors
|
||||||
with_settings :cross_project_issue_relations => '0' do
|
with_settings :cross_project_issue_relations => '0' do
|
||||||
assert_difference 'IssueRelation.count', +3 do
|
assert_difference 'IssueRelation.count', +3 do
|
||||||
post :create, :params => {
|
post(
|
||||||
:issue_id => 1,
|
:create,
|
||||||
:relation => {
|
:params => {
|
||||||
:issue_to_id => '1,2,3,4,5,7',
|
:issue_id => 1,
|
||||||
:relation_type => 'relates',
|
:relation => {
|
||||||
:delay => ''
|
:issue_to_id => '1,2,3,4,5,7',
|
||||||
}
|
:relation_type => 'relates',
|
||||||
},
|
:delay => ''
|
||||||
:xhr => true
|
}
|
||||||
|
},
|
||||||
|
:xhr => true
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -682,16 +682,19 @@ class UsersControllerTest < Redmine::ControllerTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_update_without_generate_password_should_not_change_password
|
def test_update_without_generate_password_should_not_change_password
|
||||||
put :update, :params => {
|
put(
|
||||||
:id => 2, :user => {
|
:update,
|
||||||
:firstname => 'changed',
|
:params => {
|
||||||
:generate_password => '0',
|
:id => 2,
|
||||||
:password => '',
|
:user => {
|
||||||
:password_confirmation => ''
|
:firstname => 'changed',
|
||||||
},
|
:generate_password => '0',
|
||||||
:send_information => '1'
|
:password => '',
|
||||||
}
|
:password_confirmation => ''
|
||||||
|
},
|
||||||
|
:send_information => '1'
|
||||||
|
}
|
||||||
|
)
|
||||||
user = User.find(2)
|
user = User.find(2)
|
||||||
assert_equal 'changed', user.firstname
|
assert_equal 'changed', user.firstname
|
||||||
assert user.check_password?('jsmith')
|
assert user.check_password?('jsmith')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user