@@ -72,6 +72,13 class IssueTest < ActiveSupport::TestCase | |||
|
72 | 72 | end |
|
73 | 73 | end |
|
74 | 74 | |
|
75 | def test_due_date_lesser_than_start_date_should_not_validate | |
|
76 | set_language_if_valid 'en' | |
|
77 | issue = Issue.new(:start_date => '2012-10-06', :due_date => '2012-10-02') | |
|
78 | assert !issue.valid? | |
|
79 | assert_include 'Due date must be greater than start date', issue.errors.full_messages | |
|
80 | end | |
|
81 | ||
|
75 | 82 | def test_create_with_required_custom_field |
|
76 | 83 | set_language_if_valid 'en' |
|
77 | 84 | field = IssueCustomField.find_by_name('Database') |
General Comments 0
You need to be logged in to leave comments.
Login now