test/test_web_helpers.rb in sidekiq-3.3.4 vs test/test_web_helpers.rb in sidekiq-3.4.0

- old
+ new

@@ -40,7 +40,13 @@ obj = Helpers.new('HTTP_ACCEPT_LANGUAGE' => 'fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,ru;q=0.2') assert_equal 'fr', obj.locale obj = Helpers.new('HTTP_ACCEPT_LANGUAGE' => 'zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4,ru;q=0.2') assert_equal 'zh-cn', obj.locale + + obj = Helpers.new('HTTP_ACCEPT_LANGUAGE' => 'en-us; *') + assert_equal 'en', obj.locale + + obj = Helpers.new('HTTP_ACCEPT_LANGUAGE' => '*') + assert_equal 'en', obj.locale end end