Skip to content

Commit

Permalink
test/rdoc/test_rdoc_generator_json_index.rb: Use assert_equal instead…
Browse files Browse the repository at this point in the history
… of assert.

It's better because assert_equal prints the values when it fails.
  • Loading branch information
junaruga committed Oct 30, 2023
1 parent 31e9206 commit 91d40ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rdoc/test_rdoc_generator_json_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 91d40ce

Please sign in to comment.