mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@41bf282
This commit is contained in:
parent
5d21050182
commit
a0f5ff4c3c
75 changed files with 851 additions and 143 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue