remove trailing white-spaces from test/functional/context_menus_controller_test.rb.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6820 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-08-30 15:55:54 +00:00
parent bbb8fd8bae
commit af5e18a1af
1 changed files with 4 additions and 4 deletions

View File

@ -51,7 +51,7 @@ class ContextMenusControllerTest < ActionController::TestCase
:attributes => { :href => '#', :attributes => { :href => '#',
:class => 'icon-del disabled' } :class => 'icon-del disabled' }
end end
def test_context_menu_multiple_issues_of_same_project def test_context_menu_multiple_issues_of_same_project
@request.session[:user_id] = 2 @request.session[:user_id] = 2
get :issues, :ids => [1, 2] get :issues, :ids => [1, 2]
@ -59,7 +59,7 @@ class ContextMenusControllerTest < ActionController::TestCase
assert_template 'context_menu' assert_template 'context_menu'
assert_not_nil assigns(:issues) assert_not_nil assigns(:issues)
assert_equal [1, 2], assigns(:issues).map(&:id).sort assert_equal [1, 2], assigns(:issues).map(&:id).sort
ids = assigns(:issues).map(&:id).map {|i| "ids%5B%5D=#{i}"}.join('&amp;') ids = assigns(:issues).map(&:id).map {|i| "ids%5B%5D=#{i}"}.join('&amp;')
assert_tag :tag => 'a', :content => 'Edit', assert_tag :tag => 'a', :content => 'Edit',
:attributes => { :href => "/issues/bulk_edit?#{ids}", :attributes => { :href => "/issues/bulk_edit?#{ids}",
@ -91,7 +91,7 @@ class ContextMenusControllerTest < ActionController::TestCase
assert_template 'context_menu' assert_template 'context_menu'
assert_not_nil assigns(:issues) assert_not_nil assigns(:issues)
assert_equal [1, 2, 6], assigns(:issues).map(&:id).sort assert_equal [1, 2, 6], assigns(:issues).map(&:id).sort
ids = assigns(:issues).map(&:id).map {|i| "ids%5B%5D=#{i}"}.join('&amp;') ids = assigns(:issues).map(&:id).map {|i| "ids%5B%5D=#{i}"}.join('&amp;')
assert_tag :tag => 'a', :content => 'Edit', assert_tag :tag => 'a', :content => 'Edit',
:attributes => { :href => "/issues/bulk_edit?#{ids}", :attributes => { :href => "/issues/bulk_edit?#{ids}",
@ -109,7 +109,7 @@ class ContextMenusControllerTest < ActionController::TestCase
:attributes => { :href => "/issues/destroy?#{ids}", :attributes => { :href => "/issues/destroy?#{ids}",
:class => 'icon-del' } :class => 'icon-del' }
end end
def test_context_menu_issue_visibility def test_context_menu_issue_visibility
get :issues, :ids => [1, 4] get :issues, :ids => [1, 4]
assert_response :success assert_response :success