cirandas.net

ref: master

plugins/section_block/test/unit/section_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 SectionBlockPluginTest < ActiveSupport::TestCase

  def setup
    @plugin = SectionBlockPlugin.new
  end

  should 'has a name' do
    refute SectionBlockPlugin.plugin_name.blank?
  end

  should 'has a description' do
    refute SectionBlockPlugin.plugin_description.blank?
  end
  
  should 'add a block' do
    assert_equal [SectionBlockPlugin::SectionBlock], SectionBlockPlugin.extra_blocks.keys
  end

  should 'has stylesheet' do
    assert @plugin.stylesheet?
  end

end