From c717dbdc8198ddaedb6f7562cb74038fa2b30c6f Mon Sep 17 00:00:00 2001 From: YO4 Date: Sat, 25 Jan 2025 01:13:41 +0900 Subject: [PATCH] avoid platform dependent message --- spec/ruby/core/exception/system_call_error_spec.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/spec/ruby/core/exception/system_call_error_spec.rb b/spec/ruby/core/exception/system_call_error_spec.rb index 32dc95492f..07f807c0ca 100644 --- a/spec/ruby/core/exception/system_call_error_spec.rb +++ b/spec/ruby/core/exception/system_call_error_spec.rb @@ -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