From 91d40ce8f89f45d77ea9ad12ce376a4a8f187bcc Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Mon, 30 Oct 2023 17:03:16 +0100 Subject: [PATCH] test/rdoc/test_rdoc_generator_json_index.rb: Use assert_equal instead of assert. It's better because assert_equal prints the values when it fails. --- test/rdoc/test_rdoc_generator_json_index.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rdoc/test_rdoc_generator_json_index.rb b/test/rdoc/test_rdoc_generator_json_index.rb index 6b69337b45..30b9a4d174 100644 --- a/test/rdoc/test_rdoc_generator_json_index.rb +++ b/test/rdoc/test_rdoc_generator_json_index.rb @@ -105,7 +105,7 @@ def test_generate generated_file = Pathname(File.join @tmpdir, 'js/navigation.js') # This is dirty hack on JRuby - assert orig_file.mtime.inspect == generated_file.mtime.inspect, + assert_equal orig_file.mtime.inspect, generated_file.mtime.inspect, '.js files should be the same timestamp of original' json = File.read 'js/search_index.js'