Sha256: 473bcdec7fa7d84c1f99e1f7cf328d4b92ffa63443a5f6cda11b65ffd24cd862
Contents?: true
Size: 770 Bytes
Versions: 9
Compression:
Stored size: 770 Bytes
Contents
# 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 '<div class="row">' 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 <div> with the given class' do expect(panel_row(column_class: 'col-sm-12') { panel body: 'content' }).to include '<div class="col-sm-12">' end end end end
Version data entries
9 entries across 9 versions & 1 rubygems