comparison test/unit/lib/redmine_test.rb @ 119:8661b858af72

* Update to Redmine trunk rev 4705
author Chris Cannam
date Thu, 13 Jan 2011 14:12:06 +0000
parents 1d32c0a0efbf
children cbb26bc654de
comparison
equal deleted inserted replaced
39:150ceac17a8d 119:8661b858af72
13 # 13 #
14 # You should have received a copy of the GNU General Public License 14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software 15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 17
18 require File.dirname(__FILE__) + '/../../test_helper' 18 require File.expand_path('../../../test_helper', __FILE__)
19 19
20 module RedmineMenuTestHelper 20 module RedmineMenuTestHelper
21 # Assertions 21 # Assertions
22 def assert_number_of_items_in_menu(menu_name, count) 22 def assert_number_of_items_in_menu(menu_name, count)
23 assert Redmine::MenuManager.items(menu_name).size >= count, "Menu has less than #{count} items" 23 assert Redmine::MenuManager.items(menu_name).size >= count, "Menu has less than #{count} items"