[ruby/rdoc] 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.

https://github.com/ruby/rdoc/commit/91d40ce8f8
This commit is contained in:
Jun Aruga 2023-10-30 17:03:16 +01:00 коммит произвёл git
Родитель 3a21da9591
Коммит 674db715f5
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -105,7 +105,7 @@ class TestRDocGeneratorJsonIndex < RDoc::TestCase
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'