Sha256: bde97669e245cbd952d651e4a515ec60683dab02899065f468515e4184ed56d4
Contents?: true
Size: 631 Bytes
Versions: 7
Compression:
Stored size: 631 Bytes
Contents
require 'spec_helper' describe Kuhsaft::Cms::AdminHelper, type: :helper do describe '#render_language_switch?' do context 'when there is one language' do before do allow(I18n).to receive(:available_locales).and_return([:de]) end it 'returns false' do expect(helper.render_language_switch?).to be_falsey end end context 'when there are multiple languages' do before do allow(I18n).to receive(:available_locales).and_return([:de, :en]) end it 'returns true' do expect(helper.render_language_switch?).to be_truthy end end end end
Version data entries
7 entries across 7 versions & 1 rubygems