⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (272 Bytes)
Bug #7109
ยป file_utime_fail.rb
Anonymous, 10/05/2012 03:47 PM
require
'test/unit'
class
TestUtime
<
MiniTest
::
Unit
::
TestCase
def
test_utime
File
.
open
(
'a'
,
'w'
)
{
|
f
|
f
.
write
(
'asd'
);
f
.
close
}
a
=
File
.
new
(
'a'
)
t
=
Time
.
now
File
.
utime
(
t
,
t
,
a
)
assert_equal
(
t
.
nsec
,
a
.
mtime
.
nsec
)
File
.
delete
(
'a'
)
end
end
(1-1/1)
Loading...