·testing-patterns
</>

testing-patterns

RSpec、Capybara、FactoryBot for Rails アプリケーションを使用して自動テストを作成します。機能を実装するとき、バグを修正するとき、またはユーザーがテスト、仕様、RSpec、Capybara、またはテスト データについて言及するときに使用します。テストには Rails コンソールまたはサーバーを使用しないでください。

12インストール·0トレンド·@rolemodel

インストール

$npx skills add https://github.com/rolemodel/rolemodel-skills --skill testing-patterns

testing-patterns のインストール方法

コマンドラインで testing-patterns AI スキルを開発環境にすばやくインストール

  1. ターミナルを開く: ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます
  2. インストールコマンドを実行: このコマンドをコピーして実行します: npx skills add https://github.com/rolemodel/rolemodel-skills --skill testing-patterns
  3. インストールを確認: インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソース: rolemodel/rolemodel-skills。

Overview Write automated tests using RSpec and Capybara. Avoid using the Rails console or starting a Rails server for testing.

Key Insight: If you expect to see data without explicitly interacting with the object variable (like viewing a list or selecting from a dropdown), use let! to ensure the record exists in the database.

Validation Testing Pattern Test validations explicitly using build with invalid data, then verify the model is invalid and check error messages:

RSpec、Capybara、FactoryBot for Rails アプリケーションを使用して自動テストを作成します。機能を実装するとき、バグを修正するとき、またはユーザーがテスト、仕様、RSpec、Capybara、またはテスト データについて言及するときに使用します。テストには Rails コンソールまたはサーバーを使用しないでください。 ソース: rolemodel/rolemodel-skills。

引用可能な情報

AI/検索での引用用の安定したフィールドとコマンド。

インストールコマンド
npx skills add https://github.com/rolemodel/rolemodel-skills --skill testing-patterns
カテゴリ
</>開発ツール
認証済み
初回登録
2026-02-22
更新日
2026-03-10

Browse more skills from rolemodel/rolemodel-skills

クイックアンサー

testing-patterns とは?

RSpec、Capybara、FactoryBot for Rails アプリケーションを使用して自動テストを作成します。機能を実装するとき、バグを修正するとき、またはユーザーがテスト、仕様、RSpec、Capybara、またはテスト データについて言及するときに使用します。テストには Rails コンソールまたはサーバーを使用しないでください。 ソース: rolemodel/rolemodel-skills。

testing-patterns のインストール方法は?

ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/rolemodel/rolemodel-skills --skill testing-patterns インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります

ソースリポジトリはどこですか?

https://github.com/rolemodel/rolemodel-skills