Sha256: 0fa5a20e41a2f6b238d07819cc1dcc23c395bddc569edcc2e07006b7b3711f68
Contents?: true
Size: 776 Bytes
Versions: 8
Compression:
Stored size: 776 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'spec_helper' include TwitterCldr::DataReaders describe DateTimeDataReader do let(:data_reader) { DateTimeDataReader.new(:es) } describe "#initialize" do it "chooses gregorian as the calendar type if none is specified" do expect(DateTimeDataReader.new(:es).calendar_type).to eq(:gregorian) expect(DateTimeDataReader.new(:es, calendar_type: :julian).calendar_type).to eq(:julian) end end describe "#pattern" do it "as of CLDR 23, should choose the medium date time path if no other type is specified" do expect(data_reader).to receive(:path_for).with(:medium, anything).and_call_original data_reader.pattern end end end
Version data entries
8 entries across 8 versions & 2 rubygems