ref: master
plugins/container_block/test/unit/container_block_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 'test_helper' class ContainerBlockPluginTest < ActiveSupport::TestCase def setup @plugin = ContainerBlockPlugin.new end should 'has a name' do refute ContainerBlockPlugin.plugin_name.blank? end should 'has a description' do refute ContainerBlockPlugin.plugin_description.blank? end should 'add a block' do assert_equal [ContainerBlockPlugin::ContainerBlock], ContainerBlockPlugin.extra_blocks.keys end should 'has stylesheet' do assert @plugin.stylesheet? end end |