From 44762c66e6ee74c4ab21e31e4c3e86a8e54b26b5 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 18 Apr 2016 16:54:59 -0300 Subject: [PATCH] Ensure that tags_helper is loaded --- app/views/blocks/tags.html.erb | 1 + test/functional/profile_design_controller_test.rb | 5 +++++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/app/views/blocks/tags.html.erb b/app/views/blocks/tags.html.erb index c85135e..cd639ba 100644 --- a/app/views/blocks/tags.html.erb +++ b/app/views/blocks/tags.html.erb @@ -1,3 +1,4 @@ +<% extend TagsHelper %> <%= block_title(block.title, block.subtitle) %> <% diff --git a/test/functional/profile_design_controller_test.rb b/test/functional/profile_design_controller_test.rb index 1015844..809b015 100644 --- a/test/functional/profile_design_controller_test.rb +++ b/test/functional/profile_design_controller_test.rb @@ -716,4 +716,9 @@ class ProfileDesignControllerTest < ActionController::TestCase assert_equal assigns(:current_category), c1 end + should 'not fail when a profile has a tag block' do + a = create(Article, :name => 'my article', :profile_id => holder.id, :tag_list => 'tag') + @box1.blocks << TagsBlock.new + get :index, :profile => 'designtestuser' + end end -- libgit2 0.21.2