Skip to content

fix: handle empty example text#28

Open
puneetdixit200 wants to merge 1 commit into
main-branch:mainfrom
puneetdixit200:codex/empty-example-tags
Open

fix: handle empty example text#28
puneetdixit200 wants to merge 1 commit into
main-branch:mainfrom
puneetdixit200:codex/empty-example-tags

Conversation

@puneetdixit200
Copy link
Copy Markdown

Summary

  • Return an empty line list when an @example body is nil or blank
  • Add Cucumber coverage for titled empty examples and nil text normalization

Closes #15

Verification

  • PATH="/opt/homebrew/opt/ruby/bin:$PATH" bundle exec cucumber features/yard_example_test.feature:283:298
  • git diff --check
  • PATH="/opt/homebrew/opt/ruby/bin:$PATH" bundle exec rake

AI disclosure

This contribution was prepared with AI assistance and manually reviewed before submission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI: normalize_example_lines raises NoMethodError when @example tag has no body

1 participant