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

Version Path
fast_gettext-0.8.1 spec/cases/iconv_fallback.rb
fast_gettext-0.8.0 spec/cases/iconv_fallback.rb
fast_gettext-0.7.1 spec/cases/iconv_fallback.rb
fast_gettext-0.7.0 spec/cases/iconv_fallback.rb
fast_gettext-0.6.12 spec/cases/iconv_fallback.rb
fast_gettext-0.6.11 spec/cases/iconv_fallback.rb
fast_gettext-0.6.10 spec/cases/iconv_fallback.rb
fast_gettext-0.6.9 spec/cases/iconv_fallback.rb
fast_gettext-0.6.8 spec/cases/iconv_fallback.rb
fast_gettext-0.6.7 spec/cases/iconv_fallback.rb
fast_gettext-0.6.6 spec/cases/iconv_fallback.rb
fast_gettext-0.6.5 spec/cases/iconv_fallback.rb
fast_gettext-0.6.4 spec/cases/iconv_fallback.rb
fast_gettext-0.6.3 spec/cases/iconv_fallback.rb
fast_gettext-0.6.2 spec/cases/iconv_fallback.rb
fast_gettext-0.6.1 spec/cases/iconv_fallback.rb