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

Version Path
bh-1.1.1 spec/helpers/panel_row_helper_spec.rb
bh-1.1.0 spec/helpers/panel_row_helper_spec.rb
bh-1.0.1 spec/helpers/panel_row_helper_spec.rb
bh-1.0.0 spec/helpers/panel_row_helper_spec.rb
bh-0.0.8 spec/helpers/panel_row_helper_spec.rb
bh-0.0.7 spec/helpers/panel_row_helper_spec.rb
bh-0.0.6 spec/helpers/panel_row_helper_spec.rb
bh-0.0.5 spec/helpers/panel_row_helper_spec.rb
bh-0.0.4 spec/helpers/panel_row_helper_spec.rb