Commit 6e8cbd35d5e84df4d1f55344de734bbf5aa03888

Authored by Leandro Santos
2 parents 8e8f1e4d 44762c66

Merge branch 'fix_tags_block' into 'master'

Ensure that tags_helper is loaded

Fix bug when edit a profile that has a tag block added.

See merge request !861
app/views/blocks/tags.html.erb
  1 +<% extend TagsHelper %>
1 2 <%= block_title(block.title, block.subtitle) %>
2 3  
3 4 <%
... ...
test/functional/profile_design_controller_test.rb
... ... @@ -716,4 +716,9 @@ class ProfileDesignControllerTest &lt; ActionController::TestCase
716 716 assert_equal assigns(:current_category), c1
717 717 end
718 718  
  719 + should 'not fail when a profile has a tag block' do
  720 + a = create(Article, :name => 'my article', :profile_id => holder.id, :tag_list => 'tag')
  721 + @box1.blocks << TagsBlock.new
  722 + get :index, :profile => 'designtestuser'
  723 + end
719 724 end
... ...