diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-22 12:46:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-22 12:46:43 +0000 |
commit | 0fad78f53f54bb8133c55a603c4175887b38866e (patch) | |
tree | 4f135e350d923449b6b5269e0c3ce96fe79e7cb6 /test/unit/lib | |
parent | 2e3bf71e9ad344e2e49c216cc080d13da37e4a96 (diff) | |
download | redmine-0fad78f53f54bb8133c55a603c4175887b38866e.tar.gz redmine-0fad78f53f54bb8133c55a603c4175887b38866e.zip |
Removed Query.generate_default! helper.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9472 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/helpers/gantt_test.rb | 2 |
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) |