blob: 9e1aee692dc06c8f7c3a5fd5447ebd2d4e09c134 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require_relative '../../../spec_helper'
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
|