summaryrefslogtreecommitdiffstats
path: root/test/unit/lib
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-30 07:53:28 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-30 07:53:28 +0000
commit5bf8d3250399c91ef0a9a5c335b3c0b87b8c2f0e (patch)
tree198725169b92a343b01a62f9db65fe2e6985fb7b /test/unit/lib
parent99e9e7c4cdd173693513d2ab05d3c8976978ede7 (diff)
downloadredmine-5bf8d3250399c91ef0a9a5c335b3c0b87b8c2f0e.tar.gz
redmine-5bf8d3250399c91ef0a9a5c335b3c0b87b8c2f0e.zip
remove trailing white-spaces from test/unit/lib/redmine/menu_manager/mapper_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6787 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r--test/unit/lib/redmine/menu_manager/mapper_test.rb19
1 files changed, 9 insertions, 10 deletions
diff --git a/test/unit/lib/redmine/menu_manager/mapper_test.rb b/test/unit/lib/redmine/menu_manager/mapper_test.rb
index 0691b014f..357d00254 100644
--- a/test/unit/lib/redmine/menu_manager/mapper_test.rb
+++ b/test/unit/lib/redmine/menu_manager/mapper_test.rb
@@ -1,16 +1,16 @@
# Redmine - project management software
-# Copyright (C) 2006-2009 Jean-Philippe Lang
+# Copyright (C) 2006-2011 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -64,9 +64,9 @@ class Redmine::MenuManager::MapperTest < ActiveSupport::TestCase
assert_not_nil root.children[position]
assert_equal name, root.children[position].name
end
-
+
end
-
+
def test_push_before
menu_mapper = Redmine::MenuManager::Mapper.new(:test_menu, {})
menu_mapper.push :test_first, { :controller => 'projects', :action => 'show'}, {}
@@ -81,7 +81,7 @@ class Redmine::MenuManager::MapperTest < ActiveSupport::TestCase
assert_not_nil root.children[position]
assert_equal name, root.children[position].name
end
-
+
end
def test_push_after
@@ -92,14 +92,13 @@ class Redmine::MenuManager::MapperTest < ActiveSupport::TestCase
menu_mapper.push :test_fifth, { :controller => 'projects', :action => 'show'}, {}
menu_mapper.push :test_fourth, { :controller => 'projects', :action => 'show'}, {:after => :test_third}
-
root = menu_mapper.find(:root)
assert_equal 5, root.children.size
{0 => :test_first, 1 => :test_second, 2 => :test_third, 3 => :test_fourth, 4 => :test_fifth}.each do |position, name|
assert_not_nil root.children[position]
assert_equal name, root.children[position].name
end
-
+
end
def test_push_last
@@ -116,9 +115,9 @@ class Redmine::MenuManager::MapperTest < ActiveSupport::TestCase
assert_not_nil root.children[position]
assert_equal name, root.children[position].name
end
-
+
end
-
+
def test_exists_for_child_node
menu_mapper = Redmine::MenuManager::Mapper.new(:test_menu, {})
menu_mapper.push :test_overview, { :controller => 'projects', :action => 'show'}, {}