[前][次][番号順一覧][スレッド一覧]

ruby-changes:54047

From: nobu <ko1@a...>
Date: Fri, 7 Dec 2018 10:42:10 +0900 (JST)
Subject: [ruby-changes:54047] nobu:r66266 (trunk): Dump the tested timestamp itself

nobu	2018-12-07 10:42:03 +0900 (Fri, 07 Dec 2018)

  New Revision: 66266

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66266

  Log:
    Dump the tested timestamp itself

  Modified files:
    trunk/test/rdoc/test_rdoc_generator_json_index.rb
Index: test/rdoc/test_rdoc_generator_json_index.rb
===================================================================
--- test/rdoc/test_rdoc_generator_json_index.rb	(revision 66265)
+++ test/rdoc/test_rdoc_generator_json_index.rb	(revision 66266)
@@ -106,15 +106,16 @@ class TestRDocGeneratorJsonIndex < RDoc: https://github.com/ruby/ruby/blob/trunk/test/rdoc/test_rdoc_generator_json_index.rb#L106
     assert_file 'js/search_index.js'
 
     generated_file = Pathname(File.join @tmpdir, 'js/navigation.js')
+    generated_mtime = generated_file.mtime
 
     # This is dirty hack on JRuby for MiniTest 4
-    assert orig_file.mtime.inspect == generated_file.mtime.inspect,
+    assert orig_file.mtime.inspect == generated_mtime.inspect,
       '.js files should be tha same timestamp of original'
 
-    assert generated_file.mtime < now, proc {t = Time.now; <<~INSPECT}
+    assert generated_mtime < now, proc {t = Time.now; <<~INSPECT}
       .js files should be the same timestamp,
       path : #{generated_file}
-      mtime: #{generated_file.mtime}
+      mtime: #{generated_mtime}
       orig : #{orig_time} -> #{orig_file.mtime}, #{orig_file.mtime-orig_time}
       now  : #{now} -> #{t}, #{t-now}
       INSPECT

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]