From 4483cfcf42debe227ccc6a82c4f2a47cdbcbd012 Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Fri, 17 Feb 2017 13:47:54 +0100 Subject: [PATCH] Linking Issues and DMSF Documents #48 - tagging --- test/fixtures/custom_fields.yml | 2 +- test/functional/dmsf_controller_test.rb | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test/fixtures/custom_fields.yml b/test/fixtures/custom_fields.yml index 480e899e..712078d5 100644 --- a/test/fixtures/custom_fields.yml +++ b/test/fixtures/custom_fields.yml @@ -26,7 +26,7 @@ cf_1: max_length: 0 possible_values: - User documentation - - Technical docuemntation + - Technical documentation id: 21 is_required: false field_format: list diff --git a/test/functional/dmsf_controller_test.rb b/test/functional/dmsf_controller_test.rb index ec8d3735..3dcf4011 100644 --- a/test/functional/dmsf_controller_test.rb +++ b/test/functional/dmsf_controller_test.rb @@ -186,6 +186,14 @@ class DmsfControllerTest < RedmineDmsf::Test::TestCase assert_select 'tr.dmsf_tree', :count => 0 end + def test_show_tag + @role.add_permission! :view_dmsf_files + @role.add_permission! :view_dmsf_folders + get :show, :id => @project.id, :custom_field_id => 21, :custom_value => 'Technical documentation' + assert_response :success + assert_select 'tr.dmsf_tree', :count => 0 + end + def test_show_tree_view @role.add_permission! :view_dmsf_files @role.add_permission! :view_dmsf_folders