@@ -122,13 +122,17 class IssueMovesControllerTest < ActionController::TestCase | |||||
122 |
|
122 | |||
123 | should "allow changing the issue's attributes" do |
|
123 | should "allow changing the issue's attributes" do | |
124 | # Fixes random test failure with Mysql |
|
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 | Issue.delete_all("project_id=2") |
|
127 | Issue.delete_all("project_id=2") | |
127 |
|
128 | |||
128 | @request.session[:user_id] = 2 |
|
129 | @request.session[:user_id] = 2 | |
129 | assert_difference 'Issue.count', 2 do |
|
130 | assert_difference 'Issue.count', 2 do | |
130 | assert_no_difference 'Project.find(1).issues.count' do |
|
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 | end |
|
136 | end | |
133 | end |
|
137 | end | |
134 |
|
138 |
General Comments 0
You need to be logged in to leave comments.
Login now