From 2cb30321a2475e933a15ea289494af0195897cf5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 7 Jan 2018 21:41:15 +0000 Subject: 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 --- test/unit/issue_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/unit/issue_test.rb') 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 -- cgit v1.2.3