cmdtest/t/CMDTEST_unicode.rb
Johan Holmberg 42342d0c96 handle Unicode filenames on Windows + test
by adding an argument "encoding: 'UTF-8'" to Dir.entries.
Also add minimal test.
2016-11-07 14:53:21 +01:00

26 lines
378 B
Ruby

require "selftest_utils"
class CMDTEST_unicode < Cmdtest::Testcase
include SelftestUtils
def test_unicode
create_CMDTEST_foo [
"cmd 'create_unicode_file.rb' do",
" created_files 'tmp-ΑΒΓ-αβγ-א-Њ-åäöÅÄÖ.txt'",
"end",
]
cmd_cmdtest do
stdout_equal [
"### create_unicode_file.rb",
]
end
end
end