ruby-changes:68280
From: Nobuyoshi <ko1@a...>
Date: Wed, 6 Oct 2021 13:20:47 +0900 (JST)
Subject: [ruby-changes:68280] 7ed1180e00 (master): Remove the useless platform guard
https://git.ruby-lang.org/ruby.git/commit/?id=7ed1180e00 From 7ed1180e004f6c415915aaa0fa71a7e9e6bf3e98 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 6 Oct 2021 12:19:52 +0900 Subject: Remove the useless platform guard --- spec/ruby/core/file/utime_spec.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/spec/ruby/core/file/utime_spec.rb b/spec/ruby/core/file/utime_spec.rb index dd8eeef489..59eef20c66 100644 --- a/spec/ruby/core/file/utime_spec.rb +++ b/spec/ruby/core/file/utime_spec.rb @@ -70,13 +70,11 @@ describe "File.utime" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/file/utime_spec.rb#L70 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 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/