summaryrefslogtreecommitdiffstats
path: root/test/unit/helpers
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-31 12:06:03 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-31 12:06:03 +0000
commit5367658323a92314ab5599f0e45f14f34199e651 (patch)
tree5f41d05e52699e4d1aedfe89fdf68bf37fdc271b /test/unit/helpers
parentbba7d2669748d1b2906601cdf858983015e25f8c (diff)
downloadredmine-5367658323a92314ab5599f0e45f14f34199e651.tar.gz
redmine-5367658323a92314ab5599f0e45f14f34199e651.zip
remove trailing white-spaces from test/unit/helpers/application_helper_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6897 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-rw-r--r--test/unit/helpers/application_helper_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb
index d2e7cee62..f71dfbe43 100644
--- a/test/unit/helpers/application_helper_test.rb
+++ b/test/unit/helpers/application_helper_test.rb
@@ -675,26 +675,26 @@ RAW
assert_equal %(<a href="/projects/ecookbook/settings" class="project">eCookbook</a>),
link_to_project(project, {:action => 'settings'}, :class => "project")
end
-
+
def test_principals_options_for_select_with_users
users = [User.find(2), User.find(4)]
assert_equal %(<option value="2">John Smith</option><option value="4">Robert Hill</option>),
principals_options_for_select(users)
end
-
+
def test_principals_options_for_select_with_selected
users = [User.find(2), User.find(4)]
assert_equal %(<option value="2">John Smith</option><option value="4" selected="selected">Robert Hill</option>),
principals_options_for_select(users, User.find(4))
end
-
+
def test_principals_options_for_select_with_users_and_groups
users = [User.find(2), Group.find(11), User.find(4), Group.find(10)]
assert_equal %(<option value="2">John Smith</option><option value="4">Robert Hill</option>) +
%(<optgroup label="Groups"><option value="10">A Team</option><option value="11">B Team</option></optgroup>),
principals_options_for_select(users)
end
-
+
def test_principals_options_for_select_with_empty_collection
assert_equal '', principals_options_for_select([])
end