[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:
parent
3a21da9591
commit
674db715f5
@ -105,7 +105,7 @@ class TestRDocGeneratorJsonIndex < RDoc::TestCase
|
|||||||
generated_file = Pathname(File.join @tmpdir, 'js/navigation.js')
|
generated_file = Pathname(File.join @tmpdir, 'js/navigation.js')
|
||||||
|
|
||||||
# This is dirty hack on JRuby
|
# 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'
|
'.js files should be the same timestamp of original'
|
||||||
|
|
||||||
json = File.read 'js/search_index.js'
|
json = File.read 'js/search_index.js'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user