summaryrefslogtreecommitdiff
path: root/spec/ruby/core/filetest/exist_spec.rb
blob: a95d3f91a18d96a89493fed8f7483c071073a070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require_relative '../../spec_helper'
require_relative '../../shared/file/exist'

describe "FileTest.exist?" do
  it_behaves_like :file_exist, :exist?, FileTest
end

ruby_version_is "3.2" do
  describe "FileTest.exists?" do
    it "has been removed" do
      FileTest.should_not.respond_to?(:exists?)
    end
  end
end