diff options
| author | Teddy Wing | 2017-09-25 12:29:25 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-09-25 12:29:25 +0200 |
| commit | bcae693304405cc9c273cf60952b1d123a820e31 (patch) | |
| tree | 7781e66ec56abba277cf826375e8fcfc1b7b43a2 /lib/stif | |
| parent | 75c7bc19c318ace8136ee94c2a09952226c0b7de (diff) | |
| download | chouette-core-bcae693304405cc9c273cf60952b1d123a820e31.tar.bz2 | |
ModelAttribute spec: Move `#instance_variable_set` to `before` block4401-compliance-control-ModelAttribute--address-Robert,s-comments
Recommendation from Robert. The `@__all__` is an implementation detail.
It's more fragile to use `#instance_variable_set` in each test. Instead,
put that part in a `before` block so that if we decide to change it, we
only have to do so in one place.
Now each test can blithely assume that `ModelAttribute.all` starts out
as an empty list.
Refs #4401
Diffstat (limited to 'lib/stif')
0 files changed, 0 insertions, 0 deletions
