',
bootstrap_alert_tag(:warning, 'Apples', dismissible: false, id: 'apple_123')
@@ -45,9 +45,9 @@ class BootstrapHelperTest < ActionView::TestCase
end
test 'bootstrap_alert_tag with message block' do
- assert_dom_equal '
',
bootstrap_tab_nav_tag('Fruits', '#fruits', true)
end
@@ -135,7 +135,7 @@ class BootstrapHelperTest < ActionView::TestCase
refute current_page?(inbox_path)
html = content_tag(:div, bootstrap_badge_tag(:important, 99), class: 'float-end')
- html += 'Inbox'
+ html += content_tag(:div, 'Inbox', class: 'pe-5')
assert_dom_equal content_tag(:li, link_to(html, inbox_path, class: 'dropdown-item')),
bootstrap_list_badge_and_link_to(:important, 99, 'Inbox', inbox_path)
end
@@ -298,14 +298,14 @@ class BootstrapHelperTest < ActionView::TestCase
# TODO: bootstrap_pagination_tag(*args, &block)
test 'button_control_group' do
- assert_dom_equal '
' \
+ assert_dom_equal '
' \
'Apples
',
button_control_group('Apples')
html = button_control_group(class: 'some_class') do
'Pears'
end
- assert_dom_equal '
' \
+ assert_dom_equal '
' \
'
Pears
',
html
@@ -346,7 +346,7 @@ class BootstrapHelperTest < ActionView::TestCase
# Test with no label:
actual = bootstrap_horizontal_form_group { 'This is the content' }
- expected = '