When no record matches the requested criteria a scope will return all the records In this case, if no record can be found we want the result to be nil Also, make some readability fixes in specs |
||
|---|---|---|
| .. | ||
| controllers | ||
| factories | ||
| features | ||
| helpers | ||
| mailers | ||
| models | ||
| serializers | ||
| support | ||
| spec_helper.rb | ||