summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-08-02 06:00:10 +0000
committerGo MAEDA <maeda@farend.jp>2018-08-02 06:00:10 +0000
commitc76a021e92e77036152935ac19af10893f56669f (patch)
treec7671a456384e571a57a0b5deb8dcf9ba9b020c3 /test/functional
parented14823d13ae156e5040bd94c400010b92216af0 (diff)
downloadredmine-c76a021e92e77036152935ac19af10893f56669f.tar.gz
redmine-c76a021e92e77036152935ac19af10893f56669f.zip
Time entry creation: preserve 'spent on' value when using 'Create and Continue' (#29308).
Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@17459 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/timelog_controller_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index 652ee1270..943d69cbc 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -281,7 +281,7 @@ class TimelogControllerTest < Redmine::ControllerTest
},
:continue => '1'
}
- assert_redirected_to '/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=&time_entry%5Bproject_id%5D=1'
+ assert_redirected_to '/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=&time_entry%5Bproject_id%5D=1&time_entry%5Bspent_on%5D=2008-03-14'
end
end
@@ -298,7 +298,7 @@ class TimelogControllerTest < Redmine::ControllerTest
},
:continue => '1'
}
- assert_redirected_to '/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=1&time_entry%5Bproject_id%5D='
+ assert_redirected_to '/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=1&time_entry%5Bproject_id%5D=&time_entry%5Bspent_on%5D=2008-03-14'
end
end
@@ -315,7 +315,7 @@ class TimelogControllerTest < Redmine::ControllerTest
},
:continue => '1'
}
- assert_redirected_to '/projects/ecookbook/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=&time_entry%5Bproject_id%5D='
+ assert_redirected_to '/projects/ecookbook/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=&time_entry%5Bproject_id%5D=&time_entry%5Bspent_on%5D=2008-03-14'
end
end
@@ -332,7 +332,7 @@ class TimelogControllerTest < Redmine::ControllerTest
},
:continue => '1'
}
- assert_redirected_to '/issues/1/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=1&time_entry%5Bproject_id%5D='
+ assert_redirected_to '/issues/1/time_entries/new?time_entry%5Bactivity_id%5D=11&time_entry%5Bissue_id%5D=1&time_entry%5Bproject_id%5D=&time_entry%5Bspent_on%5D=2008-03-14'
end
end