summaryrefslogtreecommitdiffstats
path: root/test/functional/gantts_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-28 17:47:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-28 17:47:58 +0000
commit5bf647f290409182917f453be2ca7d13c526a7f1 (patch)
tree76377ad6588aaf05ef0961bcd5ccf1169132c4ee /test/functional/gantts_controller_test.rb
parent953b3619d49b4b1feb07e9714e6ebe4b1b961045 (diff)
downloadredmine-5bf647f290409182917f453be2ca7d13c526a7f1.tar.gz
redmine-5bf647f290409182917f453be2ca7d13c526a7f1.zip
Don't reload the issue in after_save callback.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11495 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/gantts_controller_test.rb')
-rw-r--r--test/functional/gantts_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb
index 858340448..5beb9aa28 100644
--- a/test/functional/gantts_controller_test.rb
+++ b/test/functional/gantts_controller_test.rb
@@ -82,8 +82,8 @@ class GanttsControllerTest < ActionController::TestCase
def test_gantt_should_display_relations
IssueRelation.delete_all
- issue1 = Issue.generate!(:start_date => 1.day.from_now, :due_date => 3.day.from_now)
- issue2 = Issue.generate!(:start_date => 1.day.from_now, :due_date => 3.day.from_now)
+ issue1 = Issue.generate!(:start_date => 1.day.from_now.to_date, :due_date => 3.day.from_now.to_date)
+ issue2 = Issue.generate!(:start_date => 1.day.from_now.to_date, :due_date => 3.day.from_now.to_date)
IssueRelation.create!(:issue_from => issue1, :issue_to => issue2, :relation_type => 'precedes')
get :show