summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/atime_spec.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-03 09:47:19 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-03 09:47:19 +0900
commitca0f68260ee930100dc39f8c4647ce56663f17fe (patch)
tree8132b05bc6d7ceeb78a6b6e0e739597f97739a39 /spec/ruby/core/file/atime_spec.rb
parent18f7d3c9a647f31f11e182d900b88edf5e34ea4b (diff)
Use `platform_is` guard
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2997
Diffstat (limited to 'spec/ruby/core/file/atime_spec.rb')
-rw-r--r--spec/ruby/core/file/atime_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/file/atime_spec.rb b/spec/ruby/core/file/atime_spec.rb
index b9b5db876c..5663e47266 100644
--- a/spec/ruby/core/file/atime_spec.rb
+++ b/spec/ruby/core/file/atime_spec.rb
@@ -15,7 +15,7 @@ describe "File.atime" do
File.atime(@file).should be_kind_of(Time)
end
- guard -> { platform_is :linux or platform_is :windows } do
+ platform_is :linux, :windows do
## NOTE also that some Linux systems disable atime (e.g. via mount params) for better filesystem speed.
it "returns the last access time for the named file with microseconds" do
supports_subseconds = Integer(`stat -c%x '#{__FILE__}'`[/\.(\d+)/, 1], 10)