mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
2b487d36f0
commit
4ca271909d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue