mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 22:05:56 +01:00
Remove trailing whitespaces from test (#31506).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@18233 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -118,7 +118,7 @@ class NewsControllerTest < Redmine::ControllerTest
|
||||
:news => {
|
||||
:title => 'NewsControllerTest',
|
||||
:description => 'This is the description',
|
||||
:summary => ''
|
||||
:summary => ''
|
||||
}
|
||||
}
|
||||
end
|
||||
@@ -141,11 +141,11 @@ class NewsControllerTest < Redmine::ControllerTest
|
||||
:project_id => 1,
|
||||
:news => {
|
||||
:title => 'Test',
|
||||
:description => 'This is the description'
|
||||
},
|
||||
:description => 'This is the description'
|
||||
},
|
||||
:attachments => {
|
||||
'1' => {
|
||||
'file' => uploaded_test_file('testfile.txt', 'text/plain')}
|
||||
'file' => uploaded_test_file('testfile.txt', 'text/plain')}
|
||||
}
|
||||
}
|
||||
end
|
||||
@@ -162,7 +162,7 @@ class NewsControllerTest < Redmine::ControllerTest
|
||||
:news => {
|
||||
:title => '',
|
||||
:description => 'This is the description',
|
||||
:summary => ''
|
||||
:summary => ''
|
||||
}
|
||||
}
|
||||
assert_response :success
|
||||
@@ -183,7 +183,7 @@ class NewsControllerTest < Redmine::ControllerTest
|
||||
put :update, :params => {
|
||||
:id => 1,
|
||||
:news => {
|
||||
:description => 'Description changed by test_post_edit'
|
||||
:description => 'Description changed by test_post_edit'
|
||||
}
|
||||
}
|
||||
assert_redirected_to '/news/1'
|
||||
@@ -199,11 +199,11 @@ class NewsControllerTest < Redmine::ControllerTest
|
||||
put :update, :params => {
|
||||
:id => 1,
|
||||
:news => {
|
||||
:description => 'This is the description'
|
||||
},
|
||||
:description => 'This is the description'
|
||||
},
|
||||
:attachments => {
|
||||
'1' => {
|
||||
'file' => uploaded_test_file('testfile.txt', 'text/plain')}
|
||||
'file' => uploaded_test_file('testfile.txt', 'text/plain')}
|
||||
}
|
||||
}
|
||||
end
|
||||
@@ -217,7 +217,7 @@ class NewsControllerTest < Redmine::ControllerTest
|
||||
put :update, :params => {
|
||||
:id => 1,
|
||||
:news => {
|
||||
:description => ''
|
||||
:description => ''
|
||||
}
|
||||
}
|
||||
assert_response :success
|
||||
|
||||
Reference in New Issue
Block a user