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

Version Path
twitter_cldr-2.4.3 spec/formatters/base_spec.rb
twitter_cldr-3.0.0.beta1 spec/formatters/base_spec.rb
twitter_cldr-2.4.2 spec/formatters/base_spec.rb
twitter_cldr-2.4.1 spec/formatters/base_spec.rb
twitter_cldr-2.4.0 spec/formatters/base_spec.rb
twitter_cldr-2.2.0 spec/formatters/base_spec.rb
twitter_cldr-2.1.1 spec/formatters/base_spec.rb
twitter_cldr-2.1.0 spec/formatters/base_spec.rb
twitter_cldr-2.0.2 spec/formatters/base_spec.rb
twitter_cldr-2.0.1 spec/formatters/base_spec.rb
twitter_cldr-2.0.0 spec/formatters/base_spec.rb
twitter_cldr-1.9.1 spec/formatters/base_spec.rb
twitter_cldr-1.9.0 spec/formatters/base_spec.rb
twitter_cldr-1.8.1 spec/formatters/base_spec.rb
twitter_cldr-1.8.0 spec/formatters/base_spec.rb
twitter_cldr-1.7.0 spec/formatters/base_spec.rb
twitter_cldr-1.6.2 spec/formatters/base_spec.rb
twitter_cldr-1.6.1 spec/formatters/base_spec.rb
twitter_cldr-1.6.0 spec/formatters/base_spec.rb
twitter_cldr-1.5.0 spec/formatters/base_spec.rb