Agent skill

Ruby Test Frameworks

by st0012 in st0012/ruby-skills

A skill your agent uses when writing or running tests in a Ruby project that uses minitest or test-unit.

MITAuto-check passed

Install Ruby Test Frameworks

skills CLI
$ npx skills add st0012/ruby-skills --skill ruby-test-frameworks -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install st0012/ruby-skills ruby-test-frameworks --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/st0012/ruby-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ruby-skills/skills/ruby-test-frameworks .claude/skills/ruby-test-frameworks && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ruby-test-frameworks
GitHub stars
125
Token cost
~2k tokens
SKILL.md length
739 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when writing or running tests in a Ruby project that uses minitest or test-unit.

  • Running tests in a Ruby project that uses minitest
  • SKILL.md covers Assertion Naming Mismatches, Assertions That Only Exist in…, Test Selection (CLI Flags) and Lifecycle Differences, plus 4 more sections
  • Calls rails

What it does

Ruby Test Frameworks is an agent skill from st0012/ruby-skills. Use when writing or running tests in a Ruby project that uses minitest or test-unit. These frameworks have deceptively similar APIs with critical naming differences that cause NoMethodError at runtime. Consult this before writing assertions, running specific tests, or using setup/teardown lifecycle methods.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Ruby. The repository describes itself as: Claude Code plugins for Ruby development. The licence is MIT.

When your agent uses it

  • Running tests in a Ruby project that uses minitest

Example prompts

  • “/ruby-test-frameworks”

What it can do on your machine

Read from SKILL.md and the folder at commit b1ea8b5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • rails

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ruby Test Frameworks loads about 2k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 739 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from st0012/ruby-skills at commit b1ea8b5, republished under its MIT licence (© st0012). 739 words, ~1,960 tokens.

Download SKILL.mdSave it as .claude/skills/ruby-test-frameworks/SKILL.md (or your agent's skills folder).
name
ruby-test-frameworks
description
Use when writing or running tests in a Ruby project that uses minitest or test-unit. These frameworks have deceptively similar APIs with critical naming differences that cause NoMethodError at runtime. Consult this before writing assertions, running specific tests, or using setup/teardown lifecycle methods.

Minitest vs Test-Unit Divergences

Only covers where minitest and test-unit diverge. If something isn't listed here, it works the same in both.

Assertion Naming Mismatches

Using the wrong name causes NoMethodError.

Conceptminitesttest-unit
Exceptionassert_raises (plural)assert_raise (singular)
Throwassert_throws (plural)assert_throw (singular)
Collection inclusionassert_includes (plural)assert_include (singular)
Path existsassert_path_exists (with s)assert_path_exist (no s)
Negation patternrefute_* (e.g. refute_nil)assert_not_* (e.g. assert_not_nil)

test-unit aliases minitest names (assert_raises, refute_*, etc.), so minitest syntax works in test-unit but not vice versa.

Assertions That Only Exist in One Framework

test-unit only
MethodPurpose
assert_nothing_raisedPasses if block doesn't raise (also added by Rails on top of minitest)
assert_true / assert_falseChecks for exactly true or false (not just truthy/falsy)
assert_booleanChecks value is true or false
assert_compareFor <, <=, >, >= comparisons
assert_raise_with_messageChecks both exception class and message
assert_raise_messageChecks exception message only (any class)
assert_raise_kind_ofChecks exception via kind_of? instead of exact class
assert_const_defined / assert_not_const_definedCheck constant existence
assert_alias_methodVerify method aliasing
assert_nothing_thrownPasses if block doesn't call throw
assert_blockPasses if block returns truthy
minitest only
MethodPurpose
assert_pattern / refute_patternRuby 3+ pattern matching (in expressions)
assert_silentPasses if block produces no stdout/stderr
assert_outputCheck stdout/stderr content
capture_io / capture_subprocess_ioCapture output for inspection
skip_until(y, m, d, msg)Skip until a date, then fail as reminder
fail_after(y, m, d, msg)Pass until a date, then fail as reminder
minitest 6 breaking change

assert_equal(nil, value) is a hard failure in minitest 6. Use assert_nil(value) instead. test-unit has no such restriction.

Test Selection (CLI Flags)

Operationminitesttest-unit
By name (exact)-n test_method_name--name test_method_name
By name (regex)-n /pattern/--name "/pattern/"
By name (rake)N=/pattern/ rake testN/A
By line numberm test/file.rb:42 or minitest test/file.rb:42 (v6)--location path.rb:LINE
By line (Rails)bin/rails test test/file.rb:42N/A
Exclude by name-e /pattern/--ignore-name /pattern/
Exclude by classN/A--ignore-testcase /pattern/
Filter by classN/A (use -n /ClassName#/)--testcase ClassName
Filter by attributeN/A--attribute "speed == :slow"
Seed-s SEED or --seed SEEDN/A (use --order random)
Stop on failureN/A--stop-on-failure
Execution orderRandom by default--order alphabetic / random / defined
Color-p (pride)--color-scheme SCHEME

minitest 6 renamed -n to -i (--include). -n still works as an alias but is planned for removal.

Rails-specific flags (minitest underneath)

bin/rails test adds: -b (full backtrace), -f (fail-fast), -d (defer output), --profile [N] (slowest tests).

Lifecycle Differences

minitest
before_setup    (for frameworks like Rails)
  setup         (for test authors)
    after_setup
      [TEST]
    before_teardown
  teardown
after_teardown

No class-level hooks. No cleanup. For before(:all) / after(:all), use the minitest-hooks gem.

test-unit
startup           (class method, once before all tests)
  setup           (instance, before each test)
    [TEST]
  cleanup         (instance, only if test didn't raise)
  teardown        (instance, always runs, even if cleanup raised)
shutdown          (class method, once after all tests)

startup/shutdown have no minitest equivalent. cleanup runs after a passing test but before it's marked as passed — use it for verification like mock expectations. teardown always runs regardless of outcome — use it for resource release.

test-unit also supports registering multiple setup/teardown methods by symbol:

ruby
setup :prepare_database, :prepare_cache
Show full SKILL.md (290 more words)Show less

Skip / Pending / Omit

Conceptminitesttest-unit
Skip a testskip("reason")omit("reason") or pend("reason")
Conditional skipskip("reason") if conditionomit("reason") if condition or omit_if(condition, "reason") / omit_unless(condition, "reason")
Output characterSO (omit) or P (pend)

Critical difference: test-unit's pend with a block fails if the block passes. This catches code that was fixed but still marked pending. minitest's skip is always unconditional.

ruby
# test-unit: this FAILS if the bug gets fixed
pend("Bug #123") do
  assert_equal(42, buggy_method)  # if this passes, test fails
end

# minitest: no equivalent behavior
skip("Bug #123")  # always skips, no block form

Output Format

Aspectminitesttest-unit
Progress.FES.FEOPN (adds Omit, Pending, Notification)
SummaryN runs, N assertions, N failures, N errors, N skipsN tests, N assertions, N failures, N errors, N pendings, N omissions, N notifications
Throughputruns/s, assertions/stests/s, assertions/s

test-unit Exclusive Features

These have no minitest equivalent:

  • Data-driven tests: data("label", value) method generates parameterized test runs
  • Priority system: priority :must / :important / :high / :normal / :low / :never with probabilistic execution
  • Attributes: Generic metadata on test methods, filterable via --attribute
  • sub_test_case: Named nested test groups (minitest uses describe blocks in Spec mode)
  • notify: Non-fatal informational messages shown as N in output
  • Test runners: Console, Emacs, XML (minitest only has console with plugin system)
  • Config file: ~/.test-unit.yml for persistent settings

Rails Context

Rails uses minitest, not test-unit. But Rails adds aliases and methods that blur the line:

Aliases Rails defines on top of minitest:

Rails aliasDelegates toEffect
assert_not_* (12 methods)refute_*assert_not_nil, assert_not_equal, etc. all work in Rails
assert_notrefuteBase negation
assert_raise (singular)assert_raisesBoth singular and plural work in Rails
assert_no_matchrefute_match

Methods Rails adds (not in either framework):

MethodPurpose
assert_nothing_raisedPasses if block doesn't raise
assert_difference / assert_no_differenceCheck numeric change after block
assert_changes / assert_no_changesCheck value change after block

This means in Rails: assert_not_nil, assert_raise, and assert_nothing_raised all work — but they will not work if you move the test to plain minitest outside Rails.

© st0012, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ruby-skills/skills/ruby-test-frameworks of st0012/ruby-skills.

Open the folder on GitHubat commit b1ea8b5

Compare with similar skills

Ruby Test Frameworks next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ruby Test Frameworks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ruby Test Frameworks this skillst0012/ruby-skills125—~2kAutomated safety check: PassMIT
Gumroad Prod Consoleantiwork/gumroad9.8k—~2.9kAutomated safety check: NotesMIT
Fastlane Pull Request Reviewfastlane/fastlane42k—~550Automated safety check: PassMIT
Antipattern Preventiondoorkeeper-gem/doorkeeper5.5k—~1.1kAutomated safety check: PassMIT
Mutantmbj/mutant2.2k—~2kAutomated safety check: PassProprietary
Evaluating Pegslineofflight/frankfurter2k—~1.6kAutomated safety check: PassMIT

Similar skills

  • Gumroad Prod Console

    antiwork/gumroad

    Execute read-only Ruby/Rails commands against Gumroad's production database for debugging and investigation.

    9.8k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check: notes
  • Reviews a fastlane pull request against its linked issue and the project guides, separating blocking from non-blocking findings and handling vulnerabilities privately.

    42k GitHub stars~550 tokensUpdated today
    DevelopmentAuto-check passed
  • Antipattern Prevention

    doorkeeper-gem/doorkeeper

    Avoid common Ruby and Rails antipatterns that degrade maintainability and performance.

    5.5k GitHub stars~1.1k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Mutant

    mbj/mutant

    Run mutant, read mutation reports, fix alive mutations, and verify coverage.

    2.2k GitHub stars~2k tokensUpdated 5 days ago
    Testing & QAAuto-check passed
  • Evaluating Pegs

    lineofflight/frankfurter

    A skill your agent uses when adding, evaluating, or removing an entry in db/seeds/pegs/, when the user mentions a pegged or fixed currency, or when an issue suggests we should "pin" or "lock" a…

    2k GitHub stars~1.6k tokensUpdated 5 days ago
    Auto-check passed
  • Swig CI Repro

    swig/swig

    Reproduce a GitHub Actions Linux CI failure locally when it does not happen on your machine: a podman/docker image that mirrors the ubuntu-22.04 runner by reusing the real Tools/CI-linux-.sh install…

    6.3k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check passed

More from st0012/ruby-skills

  • Ruby Resource Map

    st0012/ruby-skills

    A skill your agent uses when working in a Ruby project - provides authoritative sources for documentation, typing, and tooling

    125 GitHub stars~744 tokensUpdated 3 mo ago
    Auto-check passed
  • Ruby Version Manager

    st0012/ruby-skills

    Use at session start for Ruby projects (Gemfile, .ruby-version, or .tool-versions present).

    125 GitHub stars~1.3k tokensUpdated 3 mo ago
    Auto-check passed

Works with

Questions about Ruby Test Frameworks

What does Ruby Test Frameworks do?

A skill your agent uses when writing or running tests in a Ruby project that uses minitest or test-unit. Ruby Test Frameworks is an agent skill from st0012/ruby-skills. Use when writing or running tests in a Ruby project that uses minitest or test-unit.

When should I use Ruby Test Frameworks?

Ruby Test Frameworks fits situations like: running tests in a Ruby project that uses minitest.

How do I install Ruby Test Frameworks in Claude Code?

Run `npx skills add st0012/ruby-skills --skill ruby-test-frameworks -a claude-code`. Or copy the skill folder (plugins/ruby-skills/skills/ruby-test-frameworks in st0012/ruby-skills) into .claude/skills/ruby-test-frameworks in your project. Claude Code loads it when a task matches its description.

How do I install Ruby Test Frameworks in Codex?

Run `npx skills add st0012/ruby-skills --skill ruby-test-frameworks -a codex`. Or copy the skill folder (plugins/ruby-skills/skills/ruby-test-frameworks in st0012/ruby-skills) into .agents/skills/ruby-test-frameworks in your project. Codex loads it when a task matches its description.

Can I use Ruby Test Frameworks in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add st0012/ruby-skills --skill ruby-test-frameworks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ruby-test-frameworks, .gemini/skills/ruby-test-frameworks, .github/skills/ruby-test-frameworks and .opencode/skills/ruby-test-frameworks in your project.

What does Ruby Test Frameworks need to run?

Going by SKILL.md and its folder, Ruby Test Frameworks needs the command-line tools its instructions call (rails).

Does Ruby Test Frameworks access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ruby Test Frameworks safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ruby Test Frameworks use?

Ruby Test Frameworks is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ruby Test Frameworks use?

About 2k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ruby Test Frameworks?

Skills that share tags, products or a category with Ruby Test Frameworks: Gumroad Prod Console (antiwork/gumroad, 9.8k stars), Fastlane Pull Request Review (fastlane/fastlane, 42k stars), Antipattern Prevention (doorkeeper-gem/doorkeeper, 5.5k stars) and Mutant (mbj/mutant, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ruby Test Frameworks?

st0012 (a GitHub user) maintains it in st0012/ruby-skills, which has 125 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on June 13, 2026.

Source: st0012/ruby-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.