bullet-train-co / bullet_train

The Open Source Ruby on Rails SaaS Template
MIT License
1.67k stars 267 forks source link

Use `setup do` instead of `def setup` in tests #1737

Closed jagthedrummer closed 1 week ago

jagthedrummer commented 3 weeks ago

When using def setup things can behave unpredictably if developers forget to call super. Using the setup do hook eliminates that problem.

Fixes: https://github.com/bullet-train-co/bullet_train/issues/1626