Skip to content

Add canonical duck type aliases and shared example support#3

Merged
thiagoa merged 1 commit into
mainfrom
add-canonical-duck-type-aliases-and-shared-example
May 20, 2026
Merged

Add canonical duck type aliases and shared example support#3
thiagoa merged 1 commit into
mainfrom
add-canonical-duck-type-aliases-and-shared-example

Conversation

@thiagoa
Copy link
Copy Markdown
Contributor

@thiagoa thiagoa commented May 15, 2026

Summary

Fills a few gaps from the canonical interface checker feature added in v0.6.0:

  • Add assert_canonical_duck_type_match as a Minitest alias for assert_canonical_interface_match
  • Add implement_canonical_duck_type as an RSpec alias for implement_canonical_interface
  • Support canonical: keyword in shared examples via it_behaves_like
  • Document all additions in README

Test plan

  • bundle exec rake ci passes (136 Minitest, 20 RSpec, StandardRB clean)

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@thiagoa thiagoa merged commit 99a56df into main May 20, 2026
3 checks passed
@thiagoa thiagoa deleted the add-canonical-duck-type-aliases-and-shared-example branch May 20, 2026 18:21
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.

1 participant