Sha256: e25e807b426f4072c9549651c93457a884f7f4c9831850fae5ae6893e90a2372
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
require File.expand_path("spec_helper", File.dirname(__FILE__)) FastGettext.add_text_domain('test',:path=>File.join(File.dirname(__FILE__),'locale')) FastGettext.text_domain = 'test' FastGettext.available_locales = ['en','de'] FastGettext.locale = 'de' include FastGettext describe FastGettext do it "provides access to FastGettext::Translations methods" do FastGettext._('car').should == 'Auto' _('car').should == 'Auto' s_("XXX|not found").should == "not found" n_('Axis','Axis',1).should == 'Achse' N_('XXXXX').should == 'XXXXX' Nn_('X','Y').should == ['X','Y'] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grosser-fast_gettext-0.2.6 | spec/fast_gettext_spec.rb |