comparison test/unit/lib/redmine/menu_manager/menu_item_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 # Helpers 21 # Helpers
22 def get_menu_item(menu_name, item_name) 22 def get_menu_item(menu_name, item_name)
23 Redmine::MenuManager.items(menu_name).find {|item| item.name == item_name.to_sym} 23 Redmine::MenuManager.items(menu_name).find {|item| item.name == item_name.to_sym}