summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/helpers/gantt_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/lib/redmine/helpers/gantt_test.rb')
-rw-r--r--test/unit/lib/redmine/helpers/gantt_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/lib/redmine/helpers/gantt_test.rb b/test/unit/lib/redmine/helpers/gantt_test.rb
index b4f201a2b..ace931ba1 100644
--- a/test/unit/lib/redmine/helpers/gantt_test.rb
+++ b/test/unit/lib/redmine/helpers/gantt_test.rb
@@ -33,7 +33,7 @@ class Redmine::Helpers::GanttHelperTest < ActionView::TestCase
@project = project
@gantt = Redmine::Helpers::Gantt.new(options)
@gantt.project = @project
- @gantt.query = Query.generate_default!(:project => @project)
+ @gantt.query = Query.create!(:project => @project, :name => 'Gantt')
@gantt.view = self
@gantt.instance_variable_set('@date_from', options[:date_from] || 2.weeks.ago.to_date)
@gantt.instance_variable_set('@date_to', options[:date_to] || 2.weeks.from_now.to_date)