Skip to content

Commit 7c62989

Browse files
committed
Error message must be sibling of input
1 parent 6f27cef commit 7c62989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/bootstrap_form_group_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ class BootstrapFormGroupTest < ActionView::TestCase
199199
<label class="col-form-label col-sm-2 required" for="user_email">Email</label>
200200
<div class="col-sm-10">
201201
<input class="form-control" id="user_email" name="user[email]" type="text" value="[email protected]" />
202+
<small class="form-text text-muted">This is required</small>
202203
</div>
203-
<small class="form-text text-muted">This is required</small>
204204
</div>
205205
HTML
206206
assert_equivalent_xml expected, @horizontal_builder.text_field(:email, help: "This is required")

0 commit comments

Comments
 (0)