with one click
rails-testing
// Help with Rails testing including unit tests, integration tests, fixtures, and debugging test failures. Use when working on tests or debugging test issues.
// Help with Rails testing including unit tests, integration tests, fixtures, and debugging test failures. Use when working on tests or debugging test issues.
Evaluate themes for accessibility, contrast, and design issues. Use when auditing themes for WCAG compliance, checking color contrast ratios, or identifying visual/UX problems.
Create new themes for PropertyWebBuilder. Use when creating custom themes, styling websites, or modifying theme templates. Handles theme registration, view templates, CSS, and asset configuration.
Playwright E2E testing and Lighthouse performance auditing. Use when setting up E2E tests, running Playwright tests, performing Lighthouse audits, or debugging E2E test failures.
Create and manage seed packs for PropertyWebBuilder. Use when creating new scenario-based seed data bundles, adding properties to packs, or setting up new tenant websites with pre-configured content.
| name | rails-testing |
| description | Help with Rails testing including unit tests, integration tests, fixtures, and debugging test failures. Use when working on tests or debugging test issues. |
When helping with Rails testing:
Understand the test structure
test/ directory to understand project conventionsRunning tests
bin/rails testbin/rails test test/models/user_test.rbbin/rails test test/models/user_test.rb:5 (line number)bin/rails test -v--fail-fast to stop on first failure: bin/rails test --fail-fastTest types in Rails
Writing effective tests
test_should_create_valid_userDebugging test failures
puts or p to inspect valuesTest database
bin/rails db:test:preparetest/fixtures/ for test dataWhen user asks: "How do I test this model?"
ā Create a model test in test/models/ following existing patterns, test validations and associations
When user asks: "Why is this test failing?" ā Analyze the error, check test data setup, verify assertions, suggest fixes
When user asks: "Add tests for this controller"
ā Create controller tests in test/controllers/, test CRUD actions and edge cases
When user asks: "How do I set up test data?"
ā Suggest fixtures in test/fixtures/ or setup methods in the test file