ref: master
plugins/breadcrumbs/test/unit/breadcrumbs_plugin_test.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
require_relative '../test_helper' class BreadcrumbsPluginTest < ActiveSupport::TestCase def setup @plugin = BreadcrumbsPlugin.new end should 'has a name' do refute BreadcrumbsPlugin.plugin_name.blank? end should 'has a description' do refute BreadcrumbsPlugin.plugin_description.blank? end should 'add a block' do assert_equal [BreadcrumbsPlugin::ContentBreadcrumbsBlock], BreadcrumbsPlugin.extra_blocks.keys end should 'has stylesheet' do assert @plugin.stylesheet? end end |