avoid platform dependent message
This commit is contained in:
parent
f220866c39
commit
c717dbdc81
Notes:
git
2025-03-18 16:29:17 +00:00
@ -138,12 +138,7 @@ end
|
|||||||
|
|
||||||
describe "SystemCallError#message" do
|
describe "SystemCallError#message" do
|
||||||
it "returns the default message when no message is given" do
|
it "returns the default message when no message is given" do
|
||||||
platform_is :aix do
|
SystemCallError.new(2**28).message.should =~ @some_human_readable
|
||||||
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
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns the message given as an argument to new" do
|
it "returns the message given as an argument to new" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user