summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/field_format
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-03 17:17:50 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-03-03 17:17:50 +0000
commit3faa3693d16207a0398adb389f244c6de396e271 (patch)
tree8cb96c0b58bfcc9e5e88fb3c4057418a63e81d98 /test/unit/lib/redmine/field_format
parentddef0ad7c164c8eee4a9832fe8fbce1fb538745a (diff)
downloadredmine-3faa3693d16207a0398adb389f244c6de396e271.tar.gz
redmine-3faa3693d16207a0398adb389f244c6de396e271.zip
Test failures.
git-svn-id: http://svn.redmine.org/redmine/trunk@16359 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine/field_format')
-rw-r--r--test/unit/lib/redmine/field_format/version_field_format_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/field_format/version_field_format_test.rb b/test/unit/lib/redmine/field_format/version_field_format_test.rb
index 22aeeb285..ca7827987 100644
--- a/test/unit/lib/redmine/field_format/version_field_format_test.rb
+++ b/test/unit/lib/redmine/field_format/version_field_format_test.rb
@@ -24,6 +24,11 @@ class Redmine::VersionFieldFormatTest < ActionView::TestCase
:issue_statuses, :issue_categories, :issue_relations, :workflows,
:enumerations
+ def setup
+ super
+ User.current = nil
+ end
+
def test_version_status_should_reject_blank_values
field = IssueCustomField.new(:name => 'Foo', :field_format => 'version', :version_status => ["open", ""])
field.save!