summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-08-21 08:40:04 +0000
committerGo MAEDA <maeda@farend.jp>2024-08-21 08:40:04 +0000
commit7cc62836b5d9b6994b12bc9513cf94bbb6a2ff82 (patch)
tree7542c0a4052e08d0bc76a4dc793d594d0d1be838 /test/unit
parent9cc3542fa1277b190a006323a77e22bd7474371c (diff)
downloadredmine-7cc62836b5d9b6994b12bc9513cf94bbb6a2ff82.tar.gz
redmine-7cc62836b5d9b6994b12bc9513cf94bbb6a2ff82.zip
Add placeholder "h:mm" to hours field for better user guidance (#2464).
Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22977 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/lib/redmine/views/labelled_form_builder_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/lib/redmine/views/labelled_form_builder_test.rb b/test/unit/lib/redmine/views/labelled_form_builder_test.rb
index ee8529853..11c3409a2 100644
--- a/test/unit/lib/redmine/views/labelled_form_builder_test.rb
+++ b/test/unit/lib/redmine/views/labelled_form_builder_test.rb
@@ -33,7 +33,9 @@ class Redmine::Views::LabelledFormBuilderTest < Redmine::HelperTest
entry.validate
labelled_form_for(entry) do |f|
- assert_include 'value="2:30"', f.hours_field(:hours)
+ field_html = f.hours_field(:hours)
+ assert_include 'value="2:30"', field_html
+ assert_include 'placeholder="h:mm"', field_html
end
end