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 2021-11-29 15:50:28 +01:00
parent e6d93a27af
commit 67a1e22589
62 changed files with 656 additions and 59 deletions

View file

@ -56,3 +56,12 @@ describe "Errno::ENOTSUP" do
end
end
end
describe "Errno::ENOENT" do
it "lets subclasses inherit the default error message" do
c = Class.new(Errno::ENOENT)
raise c, "custom message"
rescue => e
e.message.should == "No such file or directory - custom message"
end
end