Sha256: 5122cc4a787ab5be5d81c5053ee76ea973410a75cf17aa0c95812f89392e61cd
Contents?: true
Size: 427 Bytes
Versions: 1
Compression:
Stored size: 427 Bytes
Contents
# encoding: UTF-8 require File.join(File.dirname(__FILE__), %w[.. spec_helper]) include TwitterCldr::Formatters describe Base do describe "#extract_locale" do it "should return the locale specified in the options hash, :en otherwise" do base = TwitterCldr::Formatters::Base.new base.send(:extract_locale, { :locale => :hi }).should == :hi base.send(:extract_locale, {}).should == :en end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitter_cldr-1.0.1 | spec/formatters/base_spec.rb |