Sha256: 7ddbe872fdff12062c711f994e3ed100121c03257abf98c8e2f37a2cd3664044
Contents?: true
Size: 943 Bytes
Versions: 1
Compression:
Stored size: 943 Bytes
Contents
require File.expand_path("spec_helper", File.dirname(__FILE__)) default_setup class IncludeTest include FastGettext::Translation @@xx = _('car') def self.ext _('car') end def inc _('car') end def self.xx @@xx end end include FastGettext describe FastGettext do before :all do default_setup end 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 it "is extended to a class and included into a class" do IncludeTest.ext.should == 'Auto' IncludeTest.ext.should == 'Auto' IncludeTest.new.inc.should == 'Auto' IncludeTest.xx.should == 'Auto' end it "has a VERSION" do FastGettext::VERSION.should == File.read('VERSION') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grosser-fast_gettext-0.4.16 | spec/fast_gettext_spec.rb |