Skip to content

Commit eec50b8

Browse files
committed
Use assert_empty for empty string assertion
1 parent ec8aad7 commit eec50b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/rdoc/parser/c_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ def test_look_for_directives_in
16281628

16291629
parser.look_for_directives_in @top_level, comment
16301630

1631-
assert_equal "", comment.text
1631+
assert_empty comment.text
16321632
assert_equal 'not_handled', @top_level.metadata['other']
16331633
end
16341634

test/rdoc/parser/simple_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_initialize_metadata
2626

2727
assert_includes @top_level.metadata, 'unhandled'
2828

29-
assert_equal "", parser.content
29+
assert_empty parser.content
3030
end
3131

3232
def test_remove_coding_comment

0 commit comments

Comments
 (0)