ref: master
plugins/community_block/test/unit/commmunity_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 26 27 28 29 30 31 32 33 |
require_relative '../test_helper' class CommunityBlockPluginTest < ActiveSupport::TestCase def setup @plugin = CommunityBlockPlugin.new end should 'be a noosfero plugin' do assert_kind_of Noosfero::Plugin, @plugin end should 'have name' do assert_equal 'Community Block Plugin', CommunityBlockPlugin.plugin_name end should 'have description' do assert_equal "A plugin that adds a block to show community description", CommunityBlockPlugin.plugin_description end should 'have stylesheet' do assert @plugin.stylesheet? end should "return CommunityBlock in extra_blocks class method" do assert CommunityBlockPlugin.extra_blocks.keys.include?(CommunityBlock) end should "return false for class method has_admin_url?" do assert !CommunityBlockPlugin.has_admin_url? end end |