Commit 0f00757b950eec41892e2b2c83991640f0f5e202
1 parent
a90b7543
Exists in
master
and in
29 other branches
ActionItem302: added block skel
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1838 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
3 changed files
with
31 additions
and
1 deletions
Show diff stats
app/controllers/my_profile/profile_design_controller.rb
@@ -5,7 +5,7 @@ class ProfileDesignController < BoxOrganizerController | @@ -5,7 +5,7 @@ class ProfileDesignController < BoxOrganizerController | ||
5 | protect 'edit_profile_design', :profile | 5 | protect 'edit_profile_design', :profile |
6 | 6 | ||
7 | def available_blocks | 7 | def available_blocks |
8 | - blocks = [ ArticleBlock, TagsBlock, RecentDocumentsBlock, ProfileInfoBlock ] | 8 | + blocks = [ ArticleBlock, TagsBlock, RecentDocumentsBlock, ProfileInfoBlock, ProductSearchBlock ] |
9 | 9 | ||
10 | # blocks exclusive for organizations | 10 | # blocks exclusive for organizations |
11 | if profile.has_members? | 11 | if profile.has_members? |
@@ -0,0 +1,15 @@ | @@ -0,0 +1,15 @@ | ||
1 | +require File.dirname(__FILE__) + '/../test_helper' | ||
2 | + | ||
3 | +class ProductSearchBlockTest < Test::Unit::TestCase | ||
4 | + | ||
5 | + should 'describe itself' do | ||
6 | + assert_not_equal Block.description, ProductSearchBlock.description | ||
7 | + end | ||
8 | + | ||
9 | + should 'titleize itself' do | ||
10 | + assert_not_nil ProductSearchBlock.title | ||
11 | + end | ||
12 | + | ||
13 | + should 'take block content' | ||
14 | + | ||
15 | +end |