]> source.dussan.org Git - redmine.git/commitdiff
define as private GanttHelperTest helper methods
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 4 Feb 2014 10:05:54 +0000 (10:05 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 4 Feb 2014 10:05:54 +0000 (10:05 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12787 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/helpers/gantt_test.rb

index 7d57adc557cec6bf8ad283a16cda5e669e6cdafc..7658116e0973097ad952c02fe22024b3e3ce44c1 100644 (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