Sha256: 0200502a001e5057c1a2e9f29d721699e5bd45934e36453a9c58643d54272a7c
Contents?: true
Size: 498 Bytes
Versions: 10
Compression:
Stored size: 498 Bytes
Contents
require 'spec_helper' describe WorldFlags::Helper::View do include ControllerTestHelpers, WorldFlags::Helper::View let(:default_size) { 24 } before do I18n.locale = 'ar' WorldFlags.config do |c| c.auto_select! c.available_locales = [:da, :sv, :nb, :en] c.reset! c.raise_error! end end describe 'WorldFlags#locale' do it 'should translate flag code to locale' do WorldFlags.locale('dk').to_s.should == 'da' end end end
Version data entries
10 entries across 10 versions & 1 rubygems