summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/shared/open.rb
blob: 0ca1bc74db528ea14e7dafb35054d0ca5d392aed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require File.expand_path('../../../dir/fixtures/common', __FILE__)

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