Skip to content

Commit 2d690c3

Browse files
headiusandrykonchin
authored andcommitted
This spec actually depends on fchdir being available
1 parent e03a4ec commit 2d690c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/dir/chdir_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def to_str; DirSpecs.mock_dir; end
177177
dir.close
178178
end
179179

180-
platform_is_not :windows do
180+
guard -> { Dir.respond_to? :fchdir } do
181181
it "does not raise an Errno::ENOENT if the original directory no longer exists" do
182182
dir_name1 = tmp('testdir1')
183183
dir_name2 = tmp('testdir2')

0 commit comments

Comments
 (0)