Skip to content

Commit ec960f2

Browse files
committed
Revert "This spec actually depends on fchdir being available"
* This reverts commit 2d690c3. * This change is problematic because if a Ruby implementation doesn't implement chdir it will then ignore this spec, but it should be a failure to not implement fchdir (on POSIX platforms). * See discussion on 2d690c3
1 parent 5c69a4d commit ec960f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/dir/chdir_spec.rb

+1-1
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-
guard -> { Dir.respond_to? :fchdir } do
180+
platform_is_not :windows 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)