File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,13 +15,14 @@ function test_chruby_reset_hash_table()
1515 assertEquals " did not clear the path table" \
1616 " " " $( hash) "
1717 elif [[ -n " $BASH_VERSION " ]]; then
18+ local old_lang=" $LANG "
1819 export LANG=en_US.UTF-8
1920 chruby_reset
2021
2122 assertEquals " did not clear the path table" \
2223 " hash: hash table empty" " $( hash) "
2324
24- unset LANG
25+ LANG= " $old_lang "
2526 fi
2627}
2728
Original file line number Diff line number Diff line change @@ -8,13 +8,14 @@ function test_chruby_clears_hash_table()
88 assertEquals " did not clear the path table" \
99 " " " $( hash) "
1010 elif [[ -n " $BASH_VERSION " ]]; then
11+ local old_lang=" $LANG "
1112 export LANG=en_US.UTF-8
1213 chruby_use " $test_ruby_root " > /dev/null
1314
1415 assertEquals " did not clear the path table" \
1516 " hash: hash table empty" " $( hash) "
1617
17- unset LANG
18+ LANG= " $old_lang "
1819 fi
1920}
2021
You can’t perform that action at this time.
0 commit comments