summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_custom_fields_visibility_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-09-23 11:57:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-09-23 11:57:38 +0000
commit5fbe5d74bc07e55130005ac2200d568f98fd5aa2 (patch)
tree52e285b0093056429fb36e373da3a527508fbaba /test/functional/issues_custom_fields_visibility_test.rb
parent7dc4e35bc8fbdcc4ebb7bcc1d8822f78f5cf3b41 (diff)
downloadredmine-5fbe5d74bc07e55130005ac2200d568f98fd5aa2.tar.gz
redmine-5fbe5d74bc07e55130005ac2200d568f98fd5aa2.zip
Test failures with sqlite3.
git-svn-id: http://svn.redmine.org/redmine/trunk@17502 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_custom_fields_visibility_test.rb')
-rw-r--r--test/functional/issues_custom_fields_visibility_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/issues_custom_fields_visibility_test.rb b/test/functional/issues_custom_fields_visibility_test.rb
index f23d9a9d4..1ce32bf79 100644
--- a/test/functional/issues_custom_fields_visibility_test.rb
+++ b/test/functional/issues_custom_fields_visibility_test.rb
@@ -32,8 +32,9 @@ class IssuesCustomFieldsVisibilityTest < Redmine::ControllerTest
:workflows
def setup
- CustomField.delete_all
+ CustomField.destroy_all
Issue.delete_all
+
field_attributes = {:field_format => 'string', :is_for_all => true, :is_filter => true, :trackers => Tracker.all}
@fields = []
@fields << (@field1 = IssueCustomField.create!(field_attributes.merge(:name => 'Field 1', :visible => true)))
@@ -220,7 +221,9 @@ class IssuesCustomFieldsVisibilityTest < Redmine::ControllerTest
end
def test_index_with_partial_custom_field_visibility
+ CustomValue.delete_all
Issue.delete_all
+
p1 = Project.generate!
p2 = Project.generate!
user = User.generate!