@@ -2506,11 +2506,11 class IssuesControllerTest < ActionController::TestCase | |||||
2506 |
|
2506 | |||
2507 | def test_create_as_copy_should_add_relation_with_copied_issue |
|
2507 | def test_create_as_copy_should_add_relation_with_copied_issue | |
2508 | @request.session[:user_id] = 2 |
|
2508 | @request.session[:user_id] = 2 | |
2509 |
|
||||
2510 | assert_difference 'Issue.count' do |
|
2509 | assert_difference 'Issue.count' do | |
2511 | assert_difference 'IssueRelation.count' do |
|
2510 | assert_difference 'IssueRelation.count' do | |
2512 | post :create, :project_id => 1, :copy_from => 1, |
|
2511 | post :create, :project_id => 1, :copy_from => 1, | |
2513 |
:issue => {:project_id => '1', :tracker_id => '3', |
|
2512 | :issue => {:project_id => '1', :tracker_id => '3', | |
|
2513 | :status_id => '1', :subject => 'Copy'} | |||
2514 | end |
|
2514 | end | |
2515 | end |
|
2515 | end | |
2516 | copy = Issue.first(:order => 'id DESC') |
|
2516 | copy = Issue.first(:order => 'id DESC') |
General Comments 0
You need to be logged in to leave comments.
Login now