aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/file/stat/rdev_spec.rb
blob: 12f97fb044e2eecbb714edca30af04a13be61f48 (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#rdev" 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 this file represents which the file exists" do
    File.stat(@name).rdev.should be_kind_of(Integer)
  end
end