summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_custom_field_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/issue_custom_field_test.rb')
-rw-r--r--test/unit/issue_custom_field_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/issue_custom_field_test.rb b/test/unit/issue_custom_field_test.rb
index 107d47d82..4ecce3b5e 100644
--- a/test/unit/issue_custom_field_test.rb
+++ b/test/unit/issue_custom_field_test.rb
@@ -22,6 +22,11 @@ class IssueCustomFieldTest < ActiveSupport::TestCase
fixtures :roles
+ def setup
+ User.current = nil
+ @category = IssueCategory.find(1)
+ end
+
def test_custom_field_with_visible_set_to_false_should_validate_roles
set_language_if_valid 'en'
field = IssueCustomField.new(:name => 'Field', :field_format => 'string', :visible => false)