1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2020-02-28 19:07:17 +01:00
parent 5d21050182
commit a0f5ff4c3c
75 changed files with 851 additions and 143 deletions

View file

@ -41,5 +41,14 @@ platform_is_not :windows do
st.file?.should == true
st.symlink?.should == false
end
it "returns an error when given missing non-ASCII path" do
missing_path = "/missingfilepath\xE3E4".force_encoding("ASCII-8BIT")
-> {
File.stat(missing_path)
}.should raise_error(Errno::ENOENT) { |e|
e.message.should include(missing_path)
}
end
end
end