summaryrefslogtreecommitdiffstats
path: root/test/unit/query_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/query_test.rb')
-rw-r--r--test/unit/query_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index 52e29de7e..a516c7a98 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -670,7 +670,9 @@ class QueryTest < ActiveSupport::TestCase
end
def test_issue_count_with_archived_issues
- p = Project.generate!( :status => Project::STATUS_ARCHIVED )
+ p = Project.generate! do |project|
+ project.status = Project::STATUS_ARCHIVED
+ end
i = Issue.generate!( :project => p, :tracker => p.trackers.first )
assert !i.visible?