Sha256: 59d16bbd5fcf032c67e35b475d9e00d13df9f1221aabf8be465134736f83b5a7
Contents?: true
Size: 767 Bytes
Versions: 7
Compression:
Stored size: 767 Bytes
Contents
require 'spec_helper' describe Orthotypo do it 'selects proper locale' do expect(Orthotypo::Localizer.new('').composer).to be_a Orthotypo::Composer::Fr expect(Orthotypo::Localizer.new('', locale: 'fr').composer).to be_a Orthotypo::Composer::Fr expect(Orthotypo::Localizer.new('', locale: 'fr-FR').composer).to be_a Orthotypo::Composer::FrFr expect(Orthotypo::Localizer.new('', locale: 'fr-CH').composer).to be_a Orthotypo::Composer::FrCh expect(Orthotypo::Localizer.new('', locale: 'en').composer).to be_a Orthotypo::Composer::En expect(Orthotypo::Localizer.new('', locale: 'en-GB').composer).to be_a Orthotypo::Composer::EnGb expect(Orthotypo::Localizer.new('', locale: 'en-UNKNOWN').composer).to be_a Orthotypo::Composer::Fr end end
Version data entries
7 entries across 7 versions & 1 rubygems