summaryrefslogtreecommitdiffstats
path: root/test/functional/timelog_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-04 23:01:42 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-04 23:01:42 +0000
commit10509933486ab651c4a185efc37a6340d503f47b (patch)
treebb7cebf898c6527605ea48d68f1d7fc8e36e27b7 /test/functional/timelog_controller_test.rb
parent9e5ed4208b8dc531f77708e84f6d11eba3f1ca4a (diff)
downloadredmine-10509933486ab651c4a185efc37a6340d503f47b.tar.gz
redmine-10509933486ab651c4a185efc37a6340d503f47b.zip
Removed unnecessary calculations in time entries index.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8085 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-rw-r--r--test/functional/timelog_controller_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index fe2aea6e3..feb53747d 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -270,8 +270,8 @@ class TimelogControllerTest < ActionController::TestCase
assert_not_nil assigns(:total_hours)
assert_equal "162.90", "%.2f" % assigns(:total_hours)
# display all time by default
- assert_equal '2007-03-12'.to_date, assigns(:from)
- assert_equal '2007-04-22'.to_date, assigns(:to)
+ assert_nil assigns(:from)
+ assert_nil assigns(:to)
assert_tag :form,
:attributes => {:action => "/projects/ecookbook/time_entries", :id => 'query_form'}
end
@@ -320,9 +320,9 @@ class TimelogControllerTest < ActionController::TestCase
assert_equal 2, assigns(:entries).size
assert_not_nil assigns(:total_hours)
assert_equal 154.25, assigns(:total_hours)
- # display all time based on what's been logged
- assert_equal '2007-03-12'.to_date, assigns(:from)
- assert_equal '2007-04-22'.to_date, assigns(:to)
+ # display all time
+ assert_nil assigns(:from)
+ assert_nil assigns(:to)
# TODO: remove /projects/:project_id/issues/:issue_id/time_entries routes
# to use /issues/:issue_id/time_entries
assert_tag :form,