Skip to content
Snippets Groups Projects
Unverified Commit 774eefa8 authored by Dominyk Tiller's avatar Dominyk Tiller
Browse files

test_utils: add with_custom_locale test

parent de4016e0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment