From 30818561158dce27f3b0ae3f659a7bfdc867b834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Sun, 13 May 2012 00:42:19 -0300 Subject: Only set `:include_blank` if the value of this options is not present --- actionpack/test/template/form_options_helper_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionpack/test/template') diff --git a/actionpack/test/template/form_options_helper_test.rb b/actionpack/test/template/form_options_helper_test.rb index 52b4939670..fee63b76c7 100644 --- a/actionpack/test/template/form_options_helper_test.rb +++ b/actionpack/test/template/form_options_helper_test.rb @@ -640,6 +640,12 @@ class FormOptionsHelperTest < ActionView::TestCase select("post", "category", %w(abe mus hest), {}, required: true) ) end + + def test_required_select_with_include_blank_prompt + assert_dom_equal( + %(), + select("post", "category", %w(abe mus hest), { include_blank: "Select one" }, required: true) + ) end def test_required_select_display_size_equals_to_one -- cgit v1.2.3