Sha256: 2eb8cae83ec8be43a5c46772ea935a005cdeb7e174b5893dc7c0b392f65f799b

Contents?: true

Size: 1.13 KB

Versions: 7

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true
require 'spec_helper'

describe LayoutHelper do
  describe '#show_content_classes' do
    it 'returns a string of classes' do
      expect(helper.show_content_classes).to be_an String
      expect(helper.show_content_classes).to eq 'col-md-9 col-sm-8 show-document'
    end
  end

  describe '#show_sidebar_classes' do
    it 'returns a string of classes' do
      expect(helper.show_sidebar_classes).to be_an String
      expect(helper.show_sidebar_classes).to eq 'col-md-3 col-sm-4'
    end
  end

  describe '#main_content_classes' do
    it 'returns a string of classes' do
      expect(helper.main_content_classes).to be_an String
      expect(helper.main_content_classes).to eq 'col-md-9 col-sm-8'
    end
  end

  describe '#sidebar_classes' do
    it 'returns a string of classes' do
      expect(helper.sidebar_classes).to be_an String
      expect(helper.sidebar_classes).to eq 'col-md-3 col-sm-4'
    end
  end

  describe '#container_classes' do
    it 'returns a string of classe(s)' do
      expect(helper.container_classes).to be_an String
      expect(helper.container_classes).to eq 'container'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-6.3.1 spec/helpers/layout_helper_spec.rb
blacklight-6.3.0 spec/helpers/layout_helper_spec.rb
blacklight-6.2.0 spec/helpers/layout_helper_spec.rb
blacklight-6.1.0 spec/helpers/layout_helper_spec.rb
blacklight-6.0.2 spec/helpers/layout_helper_spec.rb
blacklight-6.0.1 spec/helpers/layout_helper_spec.rb
blacklight-6.0.0 spec/helpers/layout_helper_spec.rb