diff --git a/test/bootstrap_fields_test.rb b/test/bootstrap_fields_test.rb
index bef429aea..7869af4e7 100644
--- a/test/bootstrap_fields_test.rb
+++ b/test/bootstrap_fields_test.rb
@@ -228,6 +228,44 @@ class BootstrapFieldsTest < ActionView::TestCase
assert_equivalent_xml expected, @horizontal_builder.text_field(:email, wrapper: { class: "mb-3 g-3" })
end
+ test "text fields are wrapped correctly when horizontal and multiple wrapper classes specified" do
+ expected = <<~HTML
+
+ HTML
+ assert_equivalent_xml expected,
+ @horizontal_builder.text_field(:email, wrapper_class: "bogus-1", wrapper: { class: "bogus-2" })
+ end
+
+ test "text fields are wrapped correctly when horizontal and wrapper class specified" do
+ expected = <<~HTML
+
+ HTML
+ assert_equivalent_xml expected, @horizontal_builder.text_field(:email, wrapper_class: "bogus-1")
+ end
+
+ test "text fields are wrapped correctly when horizontal and multiple wrapper classes specified (reverse order)" do
+ expected = <<~HTML
+
+ HTML
+ assert_equivalent_xml expected,
+ @horizontal_builder.text_field(:email, wrapper: { class: "bogus-2" }, wrapper_class: "bogus-1")
+ end
+
test "field 'id' attribute is used to specify label 'for' attribute" do
expected = <<~HTML