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

Version Path
orthotypo-1.0.4 spec/localizer_spec.rb
orthotypo-1.0.3 spec/localizer_spec.rb
orthotypo-1.0.2 spec/localizer_spec.rb
orthotypo-1.0.1 spec/localizer_spec.rb
orthotypo-1.0.0 spec/localizer_spec.rb
orthotypo-0.6.0 spec/localizer_spec.rb
orthotypo-0.5.1 spec/localizer_spec.rb