Skip to content

Commit

Permalink
Add test for name_when_new without free_text (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefarias committed May 4, 2024
1 parent 2079d93 commit ce49142
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/helpers/hotwire_combobox/helper_test.rb
Expand Up @@ -134,6 +134,9 @@ class HotwireCombobox::HelperTest < ApplicationViewTestCase

tag = combobox_tag :foo, free_text: false, name_when_new: :bar
assert_attrs tag, tag_name: "fieldset", "data-hw-combobox-name-when-new-value": "bar"

tag = combobox_tag :foo, name_when_new: :bar
assert_attrs tag, tag_name: "fieldset", "data-hw-combobox-name-when-new-value": "bar"
end

test "hw_paginated_combobox_options includes existing params in the default next page src, but excludes transient params" do
Expand Down

0 comments on commit ce49142

Please sign in to comment.