swmcc/second_breakfast

🧪 Add unit tests for models

Open

#60 opened on Nov 23, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)HTML (0 forks)auto 404
good first issuetesting

Repository metrics

Stars
 (0 stars)
PR merge metrics
 (PR metrics pending)

Description

Description

No test directory exists. Need to add comprehensive unit tests for all models.

Models to test

  • User model (authentication, validations, associations)
  • Recipe model (validations, Active Storage, Action Text)
  • Category model (validations, associations)
  • Basket model (associations, uniqueness)

Setup needed

  • Create test/ directory structure
  • Configure test database
  • Add fixtures or factories (consider FactoryBot)
  • Set up test helpers

Testing framework

Using Rails built-in Minitest or consider RSpec

Contributor guide