Sha256: cf264738f016d95ef99511587001dff8ad3ca2ce73b93b1edd0b2ba82d96ee74
Contents?: true
Size: 626 Bytes
Versions: 4
Compression:
Stored size: 626 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'spec_helper' include TwitterCldr::Tokenizers describe TimespanTokenizer do describe "#tokens" do it "should return the correct list of tokens" do tokenizer = TimespanTokenizer.new(:locale => :es) got = tokenizer.tokens(:unit => :minute, :direction => :ago, :number => 7659) got[0].should == { :value => "Hace ", :type => :plaintext } got[1].should == { :value => "{0}", :type => :placeholder } got[2].should == { :value => " minutos", :type => :plaintext } end end end
Version data entries
4 entries across 4 versions & 1 rubygems