Sha256: b59423efa3b8c6eac1d461a8c40be43e4e7179b826e59f10176795bd62f75643
Contents?: true
Size: 1.35 KB
Versions: 5
Compression:
Stored size: 1.35 KB
Contents
# frozen_string_literal: true 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 describe '#html_tag_attributes' do before do allow(I18n).to receive(:locale).and_return('x') end it 'returns the current locale as the lang' do expect(helper.html_tag_attributes).to include lang: 'x' end end end
Version data entries
5 entries across 5 versions & 1 rubygems