From da05c1552ee519d8f180b48d97148d28501acb35 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 2 Apr 2020 22:39:28 +0200 Subject: Update to ruby/spec@cc7b9e5 --- spec/ruby/core/file/lchmod_spec.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'spec/ruby/core/file') diff --git a/spec/ruby/core/file/lchmod_spec.rb b/spec/ruby/core/file/lchmod_spec.rb index 9490459a02..6a28bdc16d 100644 --- a/spec/ruby/core/file/lchmod_spec.rb +++ b/spec/ruby/core/file/lchmod_spec.rb @@ -1,7 +1,7 @@ require_relative '../../spec_helper' describe "File.lchmod" do - platform_is_not :linux, :windows, :openbsd, :solaris, :aix do + guard -> { File.respond_to?(:lchmod) } do before :each do @fname = tmp('file_chmod_test') @lname = @fname + '.lnk' @@ -30,13 +30,9 @@ describe "File.lchmod" do end end - platform_is :linux, :openbsd, :aix do - it "returns false from #respond_to?" do - File.respond_to?(:lchmod).should be_false - end - + guard_not -> { File.respond_to?(:lchmod) } do it "raises a NotImplementedError when called" do - -> { File.lchmod 0 }.should raise_error(NotImplementedError) + -> { File.lchmod 0, "foo" }.should raise_error(NotImplementedError) end end end -- cgit v1.2.3