diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-04-26 11:21:15 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-04-26 11:21:15 +0900 |
commit | 4ca271909d51a692a97363f41d2372a108ef771a (patch) | |
tree | 4f992dd8b74db28defaf469d5604b5078854d875 /spec | |
parent | 2b487d36f0e917146189f3c403a42f9f1293b8df (diff) |
spec/ruby/core/file/shared/read.rb: The behavior of FreeBSD was changed
http://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20210426T003001Z.fail.html.gz#rubyspec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/file/shared/read.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/file/shared/read.rb b/spec/ruby/core/file/shared/read.rb index a2d479966d..f232235298 100644 --- a/spec/ruby/core/file/shared/read.rb +++ b/spec/ruby/core/file/shared/read.rb @@ -1,13 +1,13 @@ require_relative '../../dir/fixtures/common' describe :file_read_directory, shared: true do - platform_is :darwin, :linux, :openbsd, :windows do + platform_is :darwin, :linux, :freebsd, :openbsd, :windows do it "raises an Errno::EISDIR when passed a path that is a directory" do -> { @object.send(@method, ".") }.should raise_error(Errno::EISDIR) end end - platform_is :freebsd, :netbsd do + platform_is :netbsd do it "does not raises any exception when passed a path that is a directory" do -> { @object.send(@method, ".") }.should_not raise_error end |