Project

General

Profile

« Previous | Next » 

Revision 1a36b54d

Added by Eric Helms over 9 years ago

Fixes #8934: Allow plugin menu items to disable turbolinks for their links.

View differences:

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