spec/csl/locale_spec.rb in csl-1.4.2 vs spec/csl/locale_spec.rb in csl-1.4.3
- old
+ new
@@ -152,9 +152,18 @@
it 'creates duplicate date elements if the first locale has no options' do
locale.merge!(Locale.load('en-US'))
expect(locale).to have_dates
end
+
+ it 'merges dates of both locales' do
+ locale << Locale::Date.new(:form => 'numeric')
+
+ other = Locale.load('en-US')
+ locale.merge! other
+
+ expect(locale.dates.length).to eq(other.dates.length)
+ end
end
describe 'terms' do
let(:us) { Locale.load('en-US') }