測試
Writing Tests
Write Rails tests following DHH/37signals testing philosophy, adapted for RSpec and FactoryBot — system specs as the backbone, real objects over mocks, behaviour-driven testing over implementation testing. Use when writing specs, adding test coverage, debugging test failures, creating factories, or when the user mentions tests, specs, RSpec, FactoryBot, Capybara, system tests, request specs, or test coverage.