ruby-changes:56416
From: Nobuyoshi <ko1@a...>
Date: Thu, 11 Jul 2019 19:46:45 +0900 (JST)
Subject: [ruby-changes:56416] Nobuyoshi Nakada: cd069df365 (master): File::Stat uses Time#inspect
https://git.ruby-lang.org/ruby.git/commit/?id=cd069df365 From cd069df36596d9bf7a6db8aaa0dcefdafb233a91 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 11 Jul 2019 19:45:03 +0900 Subject: File::Stat uses Time#inspect diff --git a/spec/ruby/core/file/stat/inspect_spec.rb b/spec/ruby/core/file/stat/inspect_spec.rb index b0a0658..1613b42 100644 --- a/spec/ruby/core/file/stat/inspect_spec.rb +++ b/spec/ruby/core/file/stat/inspect_spec.rb @@ -15,10 +15,10 @@ describe "File::Stat#inspect" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/file/stat/inspect_spec.rb#L15 st = File.stat(@file) expected = "#<File::Stat dev=0x#{st.dev.to_s(16)}, ino=#{st.ino}, mode=#{sprintf("%07o", st.mode)}, nlink=#{st.nlink}" expected << ", uid=#{st.uid}, gid=#{st.gid}, rdev=0x#{st.rdev.to_s(16)}, size=#{st.size}, blksize=#{st.blksize.inspect}" - expected << ", blocks=#{st.blocks.inspect}, atime=#{st.atime}, mtime=#{st.mtime}, ctime=#{st.ctime}" + expected << ", blocks=#{st.blocks.inspect}, atime=#{st.atime.inspect}, mtime=#{st.mtime.inspect}, ctime=#{st.ctime.inspect}" platform_is :netbsd, :freebsd, :darwin do # Windows has File.birthtime but it's not here since already shown by ctime. - expected << ", birthtime=#{st.birthtime}" + expected << ", birthtime=#{st.birthtime.inspect}" end expected << ">" st.inspect.should == expected -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/