Sha256: edcdc8d1afcfda2698ed125ab414ce3554770eea21239feafd1ff1c171e8cb0d
Contents?: true
Size: 464 Bytes
Versions: 26
Compression:
Stored size: 464 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require '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
26 entries across 26 versions & 1 rubygems