test/unit/string_extensions_test.rb in stringex-2.1.2 vs test/unit/string_extensions_test.rb in stringex-2.2.0

- old
+ new

@@ -95,10 +95,15 @@ }.each do |html, plain| assert_equal plain, html.to_url end end + def test_to_url_with_danish_characters + Stringex::Localization.locale = :da + assert_equal "roedgroed-med-floede", "Rødgrød med fløde".to_url + end + def test_to_url_with_excludes assert_equal "So Fucking Special", "So Fucking Special".to_url(:exclude => "So Fucking Special") end def test_to_url_without_forcing_downcase @@ -152,14 +157,14 @@ end end def test_localized_vulgar_fractions_conversion Stringex::Localization.backend = :internal - Stringex::Localization.store_translations :de, :vulgar_fractions, { + Stringex::Localization.store_translations :da, :vulgar_fractions, { :one_fourth => "en fjerdedel", :half => "en halv" } - Stringex::Localization.locale = :de + Stringex::Localization.locale = :da { "¼" => "en fjerdedel", "½" => "en halv" }.each do |entitied, plain|