Sha256: 5c4c7e3f198fff049f8d0e1dbceac25f123d95bbf56ff3abf13654c0be772e56

Contents?: true

Size: 639 Bytes

Versions: 2

Compression:

Stored size: 639 Bytes

Contents

require 'spec_helper'

describe "LocaleSetter::Matcher" do
  it "can properly match mixed case locales" do
    LocaleSetter::Matcher.match(['EN-US'],['en-us']).should == :'en-us'
  end

  it "can properly match when the available locales are not all lower case" do
    LocaleSetter::Matcher.match(['es-CL'],['es-CL']).should == :'es-CL'
  end

  it "can match using a single string" do
    LocaleSetter::Matcher.match('en', ['en']).should == :en
  end

  it "can match using an array" do
    LocaleSetter::Matcher.match(['en','es'],['en','es']).should == :en
  end

  it "can fuzzy-match between locales with country and those without"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locale_setter-0.4.0 spec/locale_setter/matcher_spec.rb
locale_setter-0.3.0 spec/locale/matcher_spec.rb