From e0e9d5bd8600c01de6b73487bf66046d179c0ed7 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 21 Nov 2014 17:44:24 +0800 Subject: Fix select_tag generating tag when set to false. Fixes https://github.com/rails/rails/issues/17701. --- actionview/test/template/form_tag_helper_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionview/test') diff --git a/actionview/test/template/form_tag_helper_test.rb b/actionview/test/template/form_tag_helper_test.rb index f8fd642809..84a581b107 100644 --- a/actionview/test/template/form_tag_helper_test.rb +++ b/actionview/test/template/form_tag_helper_test.rb @@ -232,6 +232,12 @@ class FormTagHelperTest < ActionView::TestCase assert_dom_equal expected, actual end + def test_select_tag_with_include_blank_false + actual = select_tag "places", "".html_safe, include_blank: false + expected = %() + assert_dom_equal expected, actual + end + def test_select_tag_with_include_blank_string actual = select_tag "places", "".html_safe, include_blank: 'Choose' expected = %() -- cgit v1.2.3