Commit a81953ef authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Adds a test for TimeEntry#spent_on= with invalid string.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4709 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 88d847a1
......@@ -67,6 +67,12 @@ class TimeEntryTest < ActiveSupport::TestCase
assert_equal Date.parse("2011-01-14"), c.spent_on
end
def test_spent_on_with_invalid_string
c = TimeEntry.new
c.spent_on = "foo"
assert_nil c.spent_on
end
def test_spent_on_with_date
c = TimeEntry.new
c.spent_on = Date.today
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment