mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove the useless platform guard
This commit is contained in:
parent
ddca0c6686
commit
7ed1180e00
1 changed files with 5 additions and 7 deletions
|
@ -70,13 +70,11 @@ describe "File.utime" do
|
|||
end
|
||||
end
|
||||
|
||||
platform_is_not :windows do
|
||||
it "sets nanosecond precision" do
|
||||
t = Time.utc(2007, 11, 1, 15, 25, 0, 123456.789r)
|
||||
File.utime(t, t, @file1)
|
||||
File.atime(@file1).nsec.should.between?(0, 123500000)
|
||||
File.mtime(@file1).nsec.should.between?(0, 123500000)
|
||||
end
|
||||
it "may set nanosecond precision" do
|
||||
t = Time.utc(2007, 11, 1, 15, 25, 0, 123456.789r)
|
||||
File.utime(t, t, @file1)
|
||||
File.atime(@file1).nsec.should.between?(0, 123500000)
|
||||
File.mtime(@file1).nsec.should.between?(0, 123500000)
|
||||
end
|
||||
|
||||
platform_is :linux do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue