##// END OF EJS Templates
remove trailing white-spaces from test/functional/issue_moves_controller_test.rb....
Toshi MARUYAMA -
r6788:ee40c7aac325
parent child
Show More
@@ -50,7 +50,7 class IssueMovesControllerTest < ActionController::TestCase
50 assert_equal 1, Issue.find(1).tracker_id
50 assert_equal 1, Issue.find(1).tracker_id
51 assert_equal 2, Issue.find(2).tracker_id
51 assert_equal 2, Issue.find(2).tracker_id
52 end
52 end
53
53
54 def test_bulk_create_to_another_tracker
54 def test_bulk_create_to_another_tracker
55 @request.session[:user_id] = 2
55 @request.session[:user_id] = 2
56 post :create, :ids => [1, 2], :new_tracker_id => 2
56 post :create, :ids => [1, 2], :new_tracker_id => 2
@@ -63,7 +63,7 class IssueMovesControllerTest < ActionController::TestCase
63 setup do
63 setup do
64 @request.session[:user_id] = 2
64 @request.session[:user_id] = 2
65 end
65 end
66
66
67 should "allow changing the issue priority" do
67 should "allow changing the issue priority" do
68 post :create, :ids => [1, 2], :priority_id => 6
68 post :create, :ids => [1, 2], :priority_id => 6
69
69
@@ -81,7 +81,7 class IssueMovesControllerTest < ActionController::TestCase
81 assert_equal 'Moving two issues', Issue.find(2).journals.sort_by(&:id).last.notes
81 assert_equal 'Moving two issues', Issue.find(2).journals.sort_by(&:id).last.notes
82
82
83 end
83 end
84
84
85 end
85 end
86
86
87 def test_bulk_copy_to_another_project
87 def test_bulk_copy_to_another_project
@@ -108,12 +108,12 class IssueMovesControllerTest < ActionController::TestCase
108 assert_equal issue_before_move.status_id, issue_after_move.status_id
108 assert_equal issue_before_move.status_id, issue_after_move.status_id
109 assert_equal issue_before_move.assigned_to_id, issue_after_move.assigned_to_id
109 assert_equal issue_before_move.assigned_to_id, issue_after_move.assigned_to_id
110 end
110 end
111
111
112 should "allow changing the issue's attributes" do
112 should "allow changing the issue's attributes" do
113 # Fixes random test failure with Mysql
113 # Fixes random test failure with Mysql
114 # where Issue.all(:limit => 2, :order => 'id desc', :conditions => {:project_id => 2}) doesn't return the expected results
114 # where Issue.all(:limit => 2, :order => 'id desc', :conditions => {:project_id => 2}) doesn't return the expected results
115 Issue.delete_all("project_id=2")
115 Issue.delete_all("project_id=2")
116
116
117 @request.session[:user_id] = 2
117 @request.session[:user_id] = 2
118 assert_difference 'Issue.count', 2 do
118 assert_difference 'Issue.count', 2 do
119 assert_no_difference 'Project.find(1).issues.count' do
119 assert_no_difference 'Project.find(1).issues.count' do
@@ -137,7 +137,7 class IssueMovesControllerTest < ActionController::TestCase
137 assert_difference 'Issue.count', 1 do
137 assert_difference 'Issue.count', 1 do
138 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'
138 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'
139 end
139 end
140
140
141 issue = Issue.first(:order => 'id DESC')
141 issue = Issue.first(:order => 'id DESC')
142 assert_equal 1, issue.journals.size
142 assert_equal 1, issue.journals.size
143 journal = issue.journals.first
143 journal = issue.journals.first
@@ -145,7 +145,7 class IssueMovesControllerTest < ActionController::TestCase
145 assert_equal 'Copying one issue', journal.notes
145 assert_equal 'Copying one issue', journal.notes
146 end
146 end
147 end
147 end
148
148
149 def test_copy_to_another_project_should_follow_when_needed
149 def test_copy_to_another_project_should_follow_when_needed
150 @request.session[:user_id] = 2
150 @request.session[:user_id] = 2
151 post :create, :ids => [1], :new_project_id => 2, :copy_options => {:copy => '1'}, :follow => '1'
151 post :create, :ids => [1], :new_project_id => 2, :copy_options => {:copy => '1'}, :follow => '1'
General Comments 0
You need to be logged in to leave comments. Login now