Skip to content

Commit 62d60e2

Browse files
FranklinYupostmodern
authored andcommitted
Override language to English
The two tests hardcode the error message, so they are language- dependent.
1 parent 0783b3a commit 62d60e2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/unit/chruby_reset_test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ function test_chruby_reset_hash_table()
1515
assertEquals "did not clear the path table" \
1616
"" "$(hash)"
1717
elif [[ -n "$BASH_VERSION" ]]; then
18+
export LANG=en_US.UTF-8
1819
chruby_reset
1920

2021
assertEquals "did not clear the path table" \
2122
"hash: hash table empty" "$(hash)"
23+
24+
unset LANG
2225
fi
2326
}
2427

test/unit/chruby_use_test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ function test_chruby_clears_hash_table()
88
assertEquals "did not clear the path table" \
99
"" "$(hash)"
1010
elif [[ -n "$BASH_VERSION" ]]; then
11+
export LANG=en_US.UTF-8
1112
chruby_use "$test_ruby_root" >/dev/null
1213

1314
assertEquals "did not clear the path table" \
1415
"hash: hash table empty" "$(hash)"
16+
17+
unset LANG
1518
fi
1619
}
1720

0 commit comments

Comments
 (0)