code layout clean up of 'should "allow adding a note when copying"' at test/functional/issue_moves_controller_test.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7532 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-09-25 10:46:20 +00:00
parent c01d94203b
commit f21fd28917
1 changed files with 4 additions and 1 deletions

View File

@ -150,7 +150,10 @@ class IssueMovesControllerTest < ActionController::TestCase
should "allow adding a note when copying" do should "allow adding a note when copying" do
@request.session[:user_id] = 2 @request.session[:user_id] = 2
assert_difference 'Issue.count', 1 do assert_difference 'Issue.count', 1 do
post :create, :ids => [1], :copy_options => {:copy => '1'}, :notes => 'Copying one issue', :new_tracker_id => '', :assigned_to_id => 4, :status_id => 3, :start_date => '2009-12-01', :due_date => '2009-12-31' post :create, :ids => [1], :copy_options => {:copy => '1'},
:notes => 'Copying one issue', :new_tracker_id => '',
:assigned_to_id => 4, :status_id => 3,
:start_date => '2009-12-01', :due_date => '2009-12-31'
end end
issue = Issue.first(:order => 'id DESC') issue = Issue.first(:order => 'id DESC')