Sha256: 960283b35b11951fc714cb8ad0496312c866c4bf66a8f8520f002008390621b0
Contents?: true
Size: 575 Bytes
Versions: 11
Compression:
Stored size: 575 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'spec_helper' include TwitterCldr describe Float do describe "#localize" do it "should localize with the given locale, English by default" do num = 1337.8 num.should be_a(Float) loc_num = num.localize loc_num.should be_a(LocalizedNumber) loc_num.locale.should == :en loc_num.base_obj.should == num loc_num = num.localize(:it) loc_num.should be_a(LocalizedNumber) loc_num.locale.should == :it end end end
Version data entries
11 entries across 11 versions & 1 rubygems