Sha256: ad3fb4365cb6047cf3953c04a16be37ea7ab044864e1bf96cc2ffa8fb767f909

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

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.0 spec/formatters/base_spec.rb