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