define as private GanttHelperTest helper methods

git-svn-id: http://svn.redmine.org/redmine/trunk@12787 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-02-04 10:05:54 +00:00
parent cfcdf06f89
commit 10c6b0e84f
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ class Redmine::Helpers::GanttHelperTest < ActionView::TestCase
def today
@today ||= Date.today
end
private :today
# Creates a Gantt chart for a 4 week span
def create_gantt(project=Project.generate!, options={})
@ -53,6 +54,7 @@ class Redmine::Helpers::GanttHelperTest < ActionView::TestCase
@gantt.instance_variable_set('@date_from', options[:date_from] || (today - 14))
@gantt.instance_variable_set('@date_to', options[:date_to] || (today + 14))
end
private :create_gantt
context "#number_of_rows" do
context "with one project" do