code layout clean up test_bulk_update_parent_id of IssuesControllerTest
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11890 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e3d47acb0b
commit
a968c1196e
@ -3489,12 +3489,11 @@ class IssuesControllerTest < ActionController::TestCase
|
|||||||
|
|
||||||
def test_bulk_update_parent_id
|
def test_bulk_update_parent_id
|
||||||
IssueRelation.delete_all
|
IssueRelation.delete_all
|
||||||
|
|
||||||
@request.session[:user_id] = 2
|
@request.session[:user_id] = 2
|
||||||
post :bulk_update, :ids => [1, 3],
|
post :bulk_update, :ids => [1, 3],
|
||||||
:notes => 'Bulk editing parent',
|
:notes => 'Bulk editing parent',
|
||||||
:issue => {:priority_id => '', :assigned_to_id => '', :status_id => '', :parent_issue_id => '2'}
|
:issue => {:priority_id => '', :assigned_to_id => '',
|
||||||
|
:status_id => '', :parent_issue_id => '2'}
|
||||||
assert_response 302
|
assert_response 302
|
||||||
parent = Issue.find(2)
|
parent = Issue.find(2)
|
||||||
assert_equal parent.id, Issue.find(1).parent_id
|
assert_equal parent.id, Issue.find(1).parent_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user