spec/locale/matcher_spec.rb in locale_setter-0.1.1 vs spec/locale/matcher_spec.rb in locale_setter-0.3.0
- old
+ new
@@ -3,9 +3,13 @@
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
\ No newline at end of file