mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Explicitly set Setting.cross_project_issue_relations to prevent random test failure (#36361).
git-svn-id: http://svn.redmine.org/redmine/trunk@21364 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9bfa91ea38
commit
addac907e5
@ -267,16 +267,18 @@ class IssueRelationsControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
|
||||
def test_bulk_create_should_show_errors
|
||||
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
|
||||
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
|
||||
end
|
||||
end
|
||||
|
||||
assert_response :success
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user