# encoding: UTF-8 require 'spec_helper' require 'bh/helpers/panel_row_helper' include Bh::PanelRowHelper describe 'panel_row' do describe 'without a block' do specify 'shows an empty row' do expect(panel_row).to include '
' end end describe 'with a block' do describe 'that does not include panels' do specify 'shows the content of the block in a row' do expect(panel_row { 'content' }).to include 'content' end end describe 'that includes panels and the :column_class option' do specify 'wraps each panel in a column
with the given class' do expect(panel_row(column_class: 'col-sm-12') { panel body: 'content' }).to include '
' end end end end