summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/shared/open.rb
blob: 677a82a3516ed79d29126515d4c1277c368b0243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require_relative '../../dir/fixtures/common'

describe :open_directory, shared: true do
  it "opens directories" do
    file = File.send(@method, tmp(""))
    begin
      file.should be_kind_of(File)
    ensure
      file.close
    end
  end
end