rspec-testing
✓在为 Ruby on Rails 应用程序编写、审查或改进 RSpec 测试时,应该使用此技能。将此技能用于所有测试任务,包括模型规格、控制器规格、系统规格、组件规格、服务规格和集成测试。该技能提供来自 Better Specs 和thoughtbot 指南的全面 RSpec 最佳实践。
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
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01