We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e1b63c commit 0867d7dCopy full SHA for 0867d7d
test/bootstrap_form_test.rb
@@ -419,6 +419,15 @@ def setup
419
assert_equal expected, output
420
end
421
422
+ test "form_group accepts class thorugh options hash" do
423
+ output = @horizontal_builder.form_group :email, class: "foo" do
424
+ %{<p class="form-control-static">Bar</p>}.html_safe
425
+ end
426
+
427
+ expected = %{<div class="form-group foo"><label class="control-label col-sm-2"></label><div class="col-sm-10"><p class="form-control-static">Bar</p></div></div>}
428
+ assert_equal expected, output
429
430
431
test "static control" do
432
output = @horizontal_builder.static_control :email
433
0 commit comments