summaryrefslogtreecommitdiffstats
path: root/test/unit/helpers/projects_helper_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-09 09:22:16 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-12-09 09:22:16 +0000
commitb0900989524e8796b77eed1d482ee712d3d10c29 (patch)
treecca8fb5ea9db6ee62d84542860c00e66814e5341 /test/unit/helpers/projects_helper_test.rb
parentf2520385e44587c9b712161ff5f5c6cb9a20fe5b (diff)
downloadredmine-b0900989524e8796b77eed1d482ee712d3d10c29.tar.gz
redmine-b0900989524e8796b77eed1d482ee712d3d10c29.zip
Fixed: Bulk edit of issues throws 500 if no versions are defined on the project (#4366).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3140 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers/projects_helper_test.rb')
-rw-r--r--test/unit/helpers/projects_helper_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/helpers/projects_helper_test.rb b/test/unit/helpers/projects_helper_test.rb
index ce9598841..ff99a15c9 100644
--- a/test/unit/helpers/projects_helper_test.rb
+++ b/test/unit/helpers/projects_helper_test.rb
@@ -60,4 +60,9 @@ class ProjectsHelperTest < HelperTestCase
def test_format_version_name_for_system_version
assert_equal "OnlineStore - Systemwide visible version", format_version_name(Version.find(7))
end
+
+ def test_version_options_for_select_with_no_versions
+ assert_equal '', version_options_for_select([])
+ assert_equal '<option value="1" selected="selected">0.1</option>', version_options_for_select([], Version.find(1))
+ end
end