Sha256: a56d688a20ac7d6c709287006a2a8e5771cfb67031fef14a3663307e10640ea7
Contents?: true
Size: 561 Bytes
Versions: 1
Compression:
Stored size: 561 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 _('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.5 | spec/fast_gettext_spec.rb |