Sha256: 87062ce83b27cfd9a662b93cc6167569820c9bc43ec0b7a406be7752bf9d0b9f
Contents?: true
Size: 570 Bytes
Versions: 66
Compression:
Stored size: 570 Bytes
Contents
require 'test_helper' module ExpressAdmin class MenuTest < ActiveSupport::TestCase # test "Menu.[] accepts module name and returns the module's menu" do # menu = ExpressAdmin::Menu['express_admin'] # assert_equal 'Dashboard', menu.title # end test "Menu.from() accepts path and returns a menu from the yaml" do menu = ExpressAdmin::Menu.from 'test/support/test_menu.yml' assert_equal 'Big Menu', menu.title assert_equal 3, menu.items.size assert_equal 'express_admin.baz_path', menu.items.last.path end end end
Version data entries
66 entries across 66 versions & 1 rubygems