summaryrefslogtreecommitdiff
path: root/spec/ruby/library/tmpdir/dir/tmpdir_spec.rb
blob: f4ab5e40b8969479ca19d65feaa642eab8aa7ccb (plain)
1
2
3
4
5
6
7
8
9
10
require_relative '../../../spec_helper'
require "tmpdir"

describe "Dir.tmpdir" do
  it "returns the path to a writable and readable directory" do
    dir = Dir.tmpdir
    File.directory?(dir).should be_true
    File.writable?(dir).should be_true
  end
end