From c881678cd75432f47903a5d1d8b86a7a723cb023 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 2 Oct 2020 08:43:33 +0900 Subject: Removed meaningless system dependent tests As [Bug #16662] lchmod available in linux since glibc 2.31.9000, a system call may exist or not exist depending on the version. It is not a spec nor responsibility of Ruby. --- spec/ruby/core/file/lchmod_spec.rb | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'spec/ruby/core') diff --git a/spec/ruby/core/file/lchmod_spec.rb b/spec/ruby/core/file/lchmod_spec.rb index 4abe42526d..7420b95e4a 100644 --- a/spec/ruby/core/file/lchmod_spec.rb +++ b/spec/ruby/core/file/lchmod_spec.rb @@ -29,22 +29,4 @@ describe "File.lchmod" do File.stat(@lname).should.writable? end end - - platform_is :openbsd, :aix do - it "returns false from #respond_to?" do - File.respond_to?(:lchmod).should be_false - end - - it "raises a NotImplementedError when called" do - -> { File.lchmod 0, "foo" }.should raise_error(NotImplementedError) - end - end - - platform_is :linux do - it "raises a NotImplementedError or Errno::ENOTSUP when called" do - -> { File.lchmod 0, "foo" }.should raise_error(Exception) { |e| - [NotImplementedError, Errno::ENOTSUP].should include(e.class) - } - end - end end -- cgit v1.2.3