summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-01-07 21:41:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-01-07 21:41:15 +0000
commit2cb30321a2475e933a15ea289494af0195897cf5 (patch)
tree4c64dfde3833a72193004735f8950673e25133a9 /test/unit/issue_test.rb
parentec53586af369c08871b86032b3b4b02ca6c5d7f6 (diff)
downloadredmine-2cb30321a2475e933a15ea289494af0195897cf5.tar.gz
redmine-2cb30321a2475e933a15ea289494af0195897cf5.zip
No validation errors when entering an invalid "Estimate hours" value (#27881).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17144 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_test.rb')
-rw-r--r--test/unit/issue_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 861e3f668..cd17612d0 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -128,7 +128,7 @@ class IssueTest < ActiveSupport::TestCase
def test_estimated_hours_should_be_validated
set_language_if_valid 'en'
- ['-2'].each do |invalid|
+ ['-2', '123abc'].each do |invalid|
issue = Issue.new(:estimated_hours => invalid)
assert !issue.valid?
assert_include 'Estimated time is invalid', issue.errors.full_messages