summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/exist_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/file/exist_spec.rb')
-rw-r--r--spec/ruby/core/file/exist_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/ruby/core/file/exist_spec.rb b/spec/ruby/core/file/exist_spec.rb
index ddb5febcba..2633376880 100644
--- a/spec/ruby/core/file/exist_spec.rb
+++ b/spec/ruby/core/file/exist_spec.rb
@@ -4,3 +4,11 @@ require_relative '../../shared/file/exist'
describe "File.exist?" do
it_behaves_like :file_exist, :exist?, File
end
+
+ruby_version_is "3.2" do
+ describe "File.exists?" do
+ it "has been removed" do
+ File.should_not.respond_to?(:exists?)
+ end
+ end
+end