require 'test_helper' class ButtonGroupTest < ActionView::TestCase include UiBibz::Helpers::Ui::CoreHelper test 'button group' do actual = ui_button_group do |bg| bg.button 'state' end expected = "
" assert_equal expected, actual end test 'button group vertical' do actual = ui_button_group(position: :vertical) do |bg| bg.button 'state' end expected = "" assert_equal expected, actual end test 'button group status' do actual = ui_button_group(status: :primary) do |bg| bg.button 'state' end expected = "" assert_equal expected, actual end test 'button group size' do actual = ui_button_group(size: :sm) do |bg| bg.button 'state' end expected = "" assert_equal expected, actual end test 'button group with dropdown' do actual = ui_button_group do |bg| bg.dropdown("Dropdown", type: :dropup, status: :success) do |d| d.link 'Link 1', url: '#link1', glyph: 'eye' end end expected = "