From ca0f68260ee930100dc39f8c4647ce56663f17fe Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 3 Apr 2020 09:47:19 +0900 Subject: Use `platform_is` guard --- spec/ruby/core/file/mtime_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/ruby/core/file/mtime_spec.rb') diff --git a/spec/ruby/core/file/mtime_spec.rb b/spec/ruby/core/file/mtime_spec.rb index 02f6fc4637..8d47d3021a 100644 --- a/spec/ruby/core/file/mtime_spec.rb +++ b/spec/ruby/core/file/mtime_spec.rb @@ -15,7 +15,7 @@ describe "File.mtime" do File.mtime(@filename).should be_close(@mtime, TIME_TOLERANCE) end - guard -> { platform_is :linux or platform_is :windows } do + platform_is :linux, :windows do it "returns the modification Time of the file with microseconds" do supports_subseconds = Integer(`stat -c%y '#{__FILE__}'`[/\.(\d+)/, 1], 10) if supports_subseconds != 0 -- cgit v1.2.3