search_catalog_block_test.rb
610 Bytes
require File.dirname(__FILE__) + '/../../../../test/test_helper'
require File.dirname(__FILE__) + '/../helpers/plugin_test_helper'
class SearchCatalogBlockTest < ActiveSupport::TestCase
include PluginTestHelper
should 'inherit from Block' do
assert_kind_of Block, SearchCatalogBlock.new
end
should 'declare its default title' do
SearchCatalogBlock.any_instance.stubs(:profile_count).returns(0)
assert_equal Block.new.default_title, SearchCatalogBlock.new.default_title
end
should 'describe itself' do
assert_not_equal Block.description, SearchCatalogBlock.description
end
end