mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-22 05:18:51 +00:00
Updated Testing and Rspec Tips (markdown)
@@ -1,6 +1,7 @@
|
||||
Please add to this collection of tips and tutorials as you find them.
|
||||
|
||||
<h2>Conventions and Tips</h2>
|
||||
|
||||
##### Controller vs Request specs
|
||||
The codebase has mostly controller specs, but we have decided to preference request specs because they offer a more complete test. Where possible, please write new tests as **request** specs, and migrate old controller specs to request where it makes sense.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user