diff --git a/app/models/products_block.rb b/app/models/products_block.rb index 83f5f9f..152f84d 100644 --- a/app/models/products_block.rb +++ b/app/models/products_block.rb @@ -4,6 +4,10 @@ class ProductsBlock < Block include ActionView::Helpers::UrlHelper include ActionController::UrlWriter + def self.description + _('A block that displays products') + end + def default_title _('Products') end diff --git a/test/unit/products_block_test.rb b/test/unit/products_block_test.rb index 5f68b7a..718f0eb 100644 --- a/test/unit/products_block_test.rb +++ b/test/unit/products_block_test.rb @@ -15,6 +15,10 @@ class ProductsBlockTest < ActiveSupport::TestCase assert_not_equal Block.new.default_title, ProductsBlock.new.default_title end + should 'provide default description' do + assert_not_equal Block.description, ProductsBlock.description + end + should "list owner products" do enterprise = Enterprise.create!(:name => 'testenterprise', :identifier => 'testenterprise') -- libgit2 0.21.2