Sha256: d8971a5597d3a70fd5020ba51820b25b49c3bcabac1f36cb7e96a7d33847322f
Contents?: true
Size: 514 Bytes
Versions: 16
Compression:
Stored size: 514 Bytes
Contents
$LOAD_PATH.unshift 'lib' $LOAD_PATH.unshift File.join('spec','cases','fake_load_path') # test that iconv cannot be found test = 1 begin require 'iconv' rescue LoadError test = 2 end raise unless test == 2 # use FastGettext like normal and see if it fails 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 raise unless FastGettext._('car') == 'Auto'
Version data entries
16 entries across 16 versions & 1 rubygems