Commit aea182e2a12c110b05da554b2108da8dac57f055

Authored by Victor Costa
Committed by Leandro Santos
1 parent 1fd71cf1

should not fail adding tags block profiles

app/views/blocks/tags.html.erb
1   -<%= block_title(block.title) %>
  1 +<% extend TagsHelper %>
  2 +<%= block_title(block.title, block.subtitle) %>
2 3  
3 4 <%
4 5 is_env = block.owner.class == Environment
... ...
test/functional/profile_design_controller_test.rb
... ... @@ -711,4 +711,10 @@ class ProfileDesignControllerTest &lt; ActionController::TestCase
711 711 end
712 712 end
713 713  
  714 + should 'not fail when a profile has a tag block' do
  715 + a = create(Article, :name => 'my article', :profile_id => holder.id, :tag_list => 'tag')
  716 + @box1.blocks << TagsBlock.new
  717 + get :index, :profile => 'designtestuser'
  718 + end
  719 +
714 720 end
... ...