Sha256: e01ac43f8e27f8a82e0b12185cb339742f587259c746eec17fd621d8c987cd8b
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
describe 'Iconv' do before do @fake_load_path = File.join('spec','vendor','fake_load_path') end after do $LOAD_PATH.delete @fake_load_path end it "also works when Iconv was not found locally" do #prepare load path $LOAD_PATH.unshift @fake_load_path test = 1 begin require 'iconv' rescue LoadError test = 2 end test.should == 2 #load fast_gettext require 'fast_gettext' FastGettext.add_text_domain('test',:path=>File.join('spec','locale')) FastGettext.text_domain = 'test' FastGettext.available_locales = ['en','de'] FastGettext.locale = 'de' #translate FastGettext._('car').should == 'Auto' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fast_gettext-0.5.2 | spec/vendor/iconv_spec.rb |