ruby-testing

Installation
SKILL.md

Ruby testing

Framework-agnostic principles, with RSpec and Minitest syntax side by side. Verify which framework the project uses before writing anything — the two have similar APIs with critical naming differences.

Minitest vs RSpec divergence

Concept Minitest test-unit
Exception assert_raises (plural) assert_raise (singular)
Throw assert_throws (plural) assert_throw (singular)
Negation refute_* assert_not_*
Path exists assert_path_exists assert_path_exist

test-unit aliases the minitest names, so minitest syntax works in test-unit but not the reverse. RSpec is a third ecosystem entirely — expect(x).to eq(y), never assert_equal.

Installs
1
First Seen
Sep 30, 2026