Files
grecia/spec/models
Javi Martín d410fcbc0e Split scope tests
In the scenario where we want to test scopes and use `match_array`, we
usually declare variables we never use, which raises a warning in the
Ruby interpreter (since the main cause for an unused variable is a
typo).

So I've decided to just split the tests into cases where every record is
returned and cases were no records are returned, just like we do in
other places.

There are several other options we've considered:

1. Don't declare unused variables, but declare the ones we use
2. Prefix unused variables with un underscore
3. Declare just one variable being an array containing all elements, and
access the elements using Array#[]
4. Don't declare any variables, and compare results against attributes
such as titles

None of these options was met with enthusiasm.
2019-09-30 15:46:58 +02:00
..
2019-09-30 15:46:58 +02:00
2019-09-24 21:32:52 +02:00
2019-09-30 15:46:58 +02:00
2019-09-30 15:46:58 +02:00
2019-09-30 15:46:58 +02:00
2019-05-31 18:22:59 +02:00
2019-03-27 15:22:14 +01:00
2019-09-30 00:36:40 +02:00