diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-04-02 22:39:28 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-04-02 22:39:28 +0200 |
commit | da05c1552ee519d8f180b48d97148d28501acb35 (patch) | |
tree | 86318d61eb54441c707954d1031a614408a5816c /spec/ruby/core/file | |
parent | 4ec32f869f5d4cdd4a3048f7a10258b3779bf388 (diff) | |
download | ruby-da05c1552ee519d8f180b48d97148d28501acb35.tar.gz |
Update to ruby/spec@cc7b9e5
Diffstat (limited to 'spec/ruby/core/file')
-rw-r--r-- | spec/ruby/core/file/lchmod_spec.rb | 10 |
1 files changed, 3 insertions, 7 deletions
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 |