Merged r4086 from trunk.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4145 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-09-20 04:05:43 +00:00
parent 066f648949
commit 7ad17f92b1
3 changed files with 25 additions and 2 deletions
+15
View File
@@ -48,4 +48,19 @@ class TimeEntryTest < ActiveSupport::TestCase
def test_hours_should_default_to_nil
assert_nil TimeEntry.new.hours
end
context "#earilest_date_for_project" do
should "return the lowest spent_on value that is visible to the current user" do
User.current = nil
assert_equal "2007-03-12", TimeEntry.earilest_date_for_project.to_s
end
end
context "#latest_date_for_project" do
should "return the highest spent_on value that is visible to the current user" do
User.current = nil
assert_equal "2007-04-22", TimeEntry.latest_date_for_project.to_s
end
end
end