require 'spec_helper' describe WorldFlags::Helper::View do include ControllerTestHelpers, WorldFlags::Helper::View let(:default_size) { 24 } before do I18n.locale = 'en' WorldFlags.config do |c| c.auto_select! c.available_locales = [:ar, :en] c.reset! c.raise_error! end end describe 'customize flag tags and text' do before do WorldFlags.config do |c| c.flag_list_tag = :div c.flag_tag = :span c.flag_text = '' end end it "should list flags using customized tags and text" do output = flags_list 32 do flags [:ar] end output.should == "
" end end end