testing-patterns

Installation
SKILL.md

Testing Patterns

Write tests that are readable, reliable, and fast. Follow these patterns consistently.

Arrange/Act/Assert

Every test has three sections separated by blank lines:

  1. Arrange — set up objects, database state, dependencies
  2. Act — exercise the system under test (one action)
  3. Assert — verify the result
it "adds the tag to the user" do
  tag = create(:tag)
  user = create(:user, tags: [])

  user.add_tag(tag)
Installs
2
GitHub Stars
3
First Seen
Oct 9, 2026