comparison test/unit/helpers/projects_helper_test.rb @ 1337:077b8890835a cannam

Merge from live branch
author Chris Cannam
date Thu, 20 Jun 2013 13:14:02 +0100
parents 433d4f72a19b
children 622f24f53b42 261b3d9a4903
comparison
equal deleted inserted replaced
1304:6137548ba453 1337:077b8890835a
1 # Redmine - project management software 1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang 2 # Copyright (C) 2006-2012 Jean-Philippe Lang
3 # 3 #
4 # This program is free software; you can redistribute it and/or 4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License 5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2 6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version. 7 # of the License, or (at your option) any later version.
18 require File.expand_path('../../../test_helper', __FILE__) 18 require File.expand_path('../../../test_helper', __FILE__)
19 19
20 class ProjectsHelperTest < ActionView::TestCase 20 class ProjectsHelperTest < ActionView::TestCase
21 include ApplicationHelper 21 include ApplicationHelper
22 include ProjectsHelper 22 include ProjectsHelper
23 include ERB::Util
23 24
24 fixtures :projects, :trackers, :issue_statuses, :issues, 25 fixtures :projects, :trackers, :issue_statuses, :issues,
25 :enumerations, :users, :issue_categories, 26 :enumerations, :users, :issue_categories,
26 :versions, 27 :versions,
27 :projects_trackers, 28 :projects_trackers,
69 assert_equal "OnlineStore - Systemwide visible version", format_version_name(Version.find(7)) 70 assert_equal "OnlineStore - Systemwide visible version", format_version_name(Version.find(7))
70 end 71 end
71 72
72 def test_version_options_for_select_with_no_versions 73 def test_version_options_for_select_with_no_versions
73 assert_equal '', version_options_for_select([]) 74 assert_equal '', version_options_for_select([])
74 assert_equal '<option value="1" selected="selected">0.1</option>', version_options_for_select([], Version.find(1)) 75 assert_equal '', version_options_for_select([], Version.find(1))
75 end 76 end
76 end 77 end