Commit a4a09442 authored by jplang's avatar jplang

Adds a test for start date < due date validation.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0ea28399
......@@ -72,6 +72,13 @@ class IssueTest < ActiveSupport::TestCase
def test_due_date_lesser_than_start_date_should_not_validate
set_language_if_valid 'en'
issue = => '2012-10-06', :due_date => '2012-10-02')
assert !issue.valid?
assert_include 'Due date must be greater than start date', issue.errors.full_messages
def test_create_with_required_custom_field
set_language_if_valid 'en'
field = IssueCustomField.find_by_name('Database')
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