зеркало из https://github.com/github/ruby.git
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:
Родитель
2b487d36f0
Коммит
4ca271909d
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче