vanilla-rails-testing
Installation
SKILL.md
Vanilla Rails Testing
NO FACTORYBOT. NO RSPEC. NO DATA CREATION IN TESTS.
Banned → Required
| Never use | Use instead |
|---|---|
create(:model), build(:model), FactoryBot |
Fixtures: cards(:logo) |
let, describe, it, context, subject |
test "name", setup do |
expect(...).to, .should |
assert, assert_equal, assert_not |
refute |
assert_not |
ActionController::TestCase |
ActionDispatch::IntegrationTest |
before_each |
setup do |
RSpec mocks (allow, expect) |
Mocha (.stubs) |
If any banned pattern appears, delete it and rewrite.