Skip to content

Commit e675416

Browse files
authored
Merge pull request #392 from TimMoore/spec-encoding
Specify an explicit external encoding for tests
2 parents 8b93450 + ed641ab commit e675416

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spec/helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
$0 = "thor"
2929
$thor_runner = true
3030
ARGV.clear
31+
Encoding.default_external = Encoding::UTF_8 if RUBY_VERSION > '1.8.7'
3132
Thor::Base.shell = Thor::Shell::Basic
3233

3334
# Load fixtures

0 commit comments

Comments
 (0)