Skip to content

feat: implement story_name and subject#15

Merged
lomefin merged 2 commits intomasterfrom
fix-name-and-subject
Mar 28, 2026
Merged

feat: implement story_name and subject#15
lomefin merged 2 commits intomasterfrom
fix-name-and-subject

Conversation

@lomefin
Copy link
Copy Markdown
Contributor

@lomefin lomefin commented Mar 28, 2026

Summary

  • story_name — class-level setter/getter for a human-readable story description (avoids overriding Module#name)
  • subject — takes a symbol and defines an instance method subject delegating to that attribute, so steps can refer to the main actor generically
  • Updated README to use story_name instead of name
  • Added 3 specs covering both methods

Test plan

  • NamedStory.story_name returns the set string
  • story_name returns nil when not set
  • story.subject delegates to the named method

lomefin and others added 2 commits March 28, 2026 00:40
- story_name sets/gets a human-readable description for the story
- subject defines an instance method delegating to a named attribute,
  letting steps refer to the main actor via subject
- Update README to use story_name (avoids overriding Module#name)
- Add specs for both methods

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@lomefin lomefin merged commit e40afcf into master Mar 28, 2026
3 checks passed
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