浏览代码

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
tags/1.2.0
Jean-Philippe Lang 13 年前
父节点
当前提交
a81953ef84
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      test/unit/time_entry_test.rb

+ 6
- 0
test/unit/time_entry_test.rb 查看文件

@@ -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

正在加载...
取消
保存