·rspec-testing
</>

rspec-testing

dgalarza/claude-code-workflows

在為 Ruby on Rails 應用程序編寫、審查或改進 RSpec 測試時,應該使用此技能。將此技能用於所有測試任務,包括模型規格、控制器規格、系統規格、組件規格、服務規格和集成測試。該技能提供來自 Better Specs 和thoughtbot 指南的全面 RSpec 最佳實踐。

6安裝·0熱度·@dgalarza

安裝

$npx skills add https://github.com/dgalarza/claude-code-workflows --skill rspec-testing

SKILL.md

Write comprehensive, maintainable RSpec tests following industry best practices. This skill combines guidance from Better Specs and thoughtbot's testing guides to produce high-quality test coverage for Rails applications.

Test Structure (Arrange-Act-Assert) Organize tests with clear phases separated by newlines:

Single Responsibility Each test should verify one behavior. For unit tests, use one expectation per test. For integration tests, multiple expectations are acceptable when testing a complete flow.

在為 Ruby on Rails 應用程序編寫、審查或改進 RSpec 測試時,應該使用此技能。將此技能用於所有測試任務,包括模型規格、控制器規格、系統規格、組件規格、服務規格和集成測試。該技能提供來自 Better Specs 和thoughtbot 指南的全面 RSpec 最佳實踐。 來源:dgalarza/claude-code-workflows。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/dgalarza/claude-code-workflows --skill rspec-testing
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 rspec-testing?

在為 Ruby on Rails 應用程序編寫、審查或改進 RSpec 測試時,應該使用此技能。將此技能用於所有測試任務,包括模型規格、控制器規格、系統規格、組件規格、服務規格和集成測試。該技能提供來自 Better Specs 和thoughtbot 指南的全面 RSpec 最佳實踐。 來源:dgalarza/claude-code-workflows。

如何安裝 rspec-testing?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/dgalarza/claude-code-workflows --skill rspec-testing 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/dgalarza/claude-code-workflows