diff options
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_utils.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb index 559e60c94..9b55965b5 100644 --- a/Library/Homebrew/test/test_utils.rb +++ b/Library/Homebrew/test/test_utils.rb @@ -78,6 +78,14 @@ class UtilTests < Homebrew::TestCase end end + def test_with_custom_locale + ENV["LC_ALL"] = "en_US.UTF-8" + with_custom_locale("C") do + assert_equal "C", ENV["LC_ALL"] + end + assert_equal "en_US.UTF-8", ENV["LC_ALL"] + end + def test_run_as_not_developer ENV["HOMEBREW_DEVELOPER"] = "foo" run_as_not_developer do |
