avoid platform dependent message

This commit is contained in:
YO4 2025-01-25 01:13:41 +09:00 committed by Nobuyoshi Nakada
parent f220866c39
commit c717dbdc81
Notes: git 2025-03-18 16:29:17 +00:00

View File

@ -138,12 +138,7 @@ end
describe "SystemCallError#message" do
it "returns the default message when no message is given" do
platform_is :aix do
SystemCallError.new(2**28).message.should =~ /Error .*occurred/i
end
platform_is_not :aix do
SystemCallError.new(2**28).message.should =~ @some_human_readable
end
SystemCallError.new(2**28).message.should =~ @some_human_readable
end
it "returns the message given as an argument to new" do