Revision 1a36b54d
Added by Eric Helms over 9 years ago
test/unit/helpers/home_helper_test.rb | ||
---|---|---|
require 'test_helper'
|
||
|
||
class HomeHelperTest < ActionView::TestCase
|
||
|
||
def test_menu_item_tag
|
||
item = Menu::Item.new(:test_good_menu, :url_hash => {:controller=>'hosts', :action=>'index'}, :after => :me, :turbolinks => false)
|
||
tag = menu_item_tag(item)
|
||
|
||
assert tag.include?('data-no-turbolink')
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
Fixes #8934: Allow plugin menu items to disable turbolinks for their links.