Skip to content

Test to_sentence with an empty array#57511

Merged
fatkodima merged 1 commit into
rails:mainfrom
hammadxcm:test-to-sentence-empty-array
Jun 1, 2026
Merged

Test to_sentence with an empty array#57511
fatkodima merged 1 commit into
rails:mainfrom
hammadxcm:test-to-sentence-empty-array

Conversation

@hammadxcm

Copy link
Copy Markdown
Contributor

ActionView's to_sentence returns an empty html_safe string for an empty array, but that branch had no test (the single-, two-, and multi-element cases were already covered).

This adds coverage for the empty-array case. No production code changes — test-only.

ActionView's to_sentence returns an empty html_safe string for an
empty array, but that branch had no test. The single-, two-, and
multi-element cases were already covered.

Add coverage for the empty-array case.
@fatkodima fatkodima merged commit fd15ae6 into rails:main Jun 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants