mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove outdated Capybara have_no recommendation (now enforced by rubocop in https://github.com/openfoodfoundation/openfoodnetwork/pull/12224)
@@ -33,9 +33,6 @@ When you have to insert an arbitrary Ruby string to a Javascript or Angular expr
|
||||
|
||||
# Tests
|
||||
|
||||
### Prefer `to have_not` as a feature matcher style (instead of `to_not have`)
|
||||
Reference: Capybara finders section of [this blog post](https://blog.codeship.com/faster-rails-tests/) for more details.
|
||||
|
||||
### Prefer plain text over method calls in expected values
|
||||
|
||||
For example, when asserting text that is translatable, use plain text instead of the `I18n.t` call.
|
||||
|
||||
Reference in New Issue
Block a user