@@ -122,13 +122,17 class IssueMovesControllerTest < ActionController::TestCase | |||
|
122 | 122 | |
|
123 | 123 | should "allow changing the issue's attributes" do |
|
124 | 124 | # Fixes random test failure with Mysql |
|
125 |
# where Issue.all(:limit => 2, :order => 'id desc', :conditions => {:project_id => 2}) |
|
|
125 | # where Issue.all(:limit => 2, :order => 'id desc', :conditions => {:project_id => 2}) | |
|
126 | # doesn't return the expected results | |
|
126 | 127 | Issue.delete_all("project_id=2") |
|
127 | 128 | |
|
128 | 129 | @request.session[:user_id] = 2 |
|
129 | 130 | assert_difference 'Issue.count', 2 do |
|
130 | 131 | assert_no_difference 'Project.find(1).issues.count' do |
|
131 | post :create, :ids => [1, 2], :new_project_id => 2, :copy_options => {:copy => '1'}, :new_tracker_id => '', :assigned_to_id => 4, :status_id => 3, :start_date => '2009-12-01', :due_date => '2009-12-31' | |
|
132 | post :create, :ids => [1, 2], :new_project_id => 2, | |
|
133 | :copy_options => {:copy => '1'}, :new_tracker_id => '', | |
|
134 | :assigned_to_id => 4, :status_id => 3, | |
|
135 | :start_date => '2009-12-01', :due_date => '2009-12-31' | |
|
132 | 136 | end |
|
133 | 137 | end |
|
134 | 138 |
General Comments 0
You need to be logged in to leave comments.
Login now