Sha256: 8191fc14327f2d97e0ecccf2c82d75e74f0abd3a97c8e176c98911ac501ffa6d
Contents?: true
Size: 561 Bytes
Versions: 1
Compression:
Stored size: 561 Bytes
Contents
# encoding: UTF-8 require File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitter_cldr-1.0.1 | spec/ext/numbers/float_spec.rb |