summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/stat/dev_spec.rb
blob: 3cdc704fd76725410afc2eb271b7d726ed871ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require File.expand_path('../../../../spec_helper', __FILE__)

describe "File::Stat#dev" do
  before :each do
    @name = tmp("file.txt")
    touch(@name)
  end
  after :each do
    rm_r @name
  end

  it "returns the number of the device on which the file exists" do
    File.stat(@name).dev.should be_kind_of(Integer)
  end
end