summaryrefslogtreecommitdiff
path: root/spec/ruby/core/dir/exist_spec.rb
blob: 9023de533fd3ff2d47faf43435fe4a1682ade09d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require_relative '../../spec_helper'
require_relative 'fixtures/common'
require_relative 'shared/exist'

describe "Dir.exist?" do
  before :all do
    DirSpecs.create_mock_dirs
  end

  after :all do
    DirSpecs.delete_mock_dirs
  end

  it_behaves_like :dir_exist, :exist?
end

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