diff options
| author | Zog | 2017-12-20 17:48:17 +0100 | 
|---|---|---|
| committer | Alban Peignier | 2017-12-21 21:35:02 +0100 | 
| commit | e8285678efc9a62115fe0af4086c7a3959666bf8 (patch) | |
| tree | 64b18197dff4d6707be10bfccca9240c601ffded /spec/factories | |
| parent | 01b2d2b785d99c9b031269fc741b70ee9c248f16 (diff) | |
| download | chouette-core-e8285678efc9a62115fe0af4086c7a3959666bf8.tar.bz2 | |
Refs #5349 @1h; Deactivate StopAreas instead of destroying them5349-deactivate-stop-areas
- Update decorators (had to split `action_links` because of
`StopPointDecorator` inheriting from `StopAreaDecorator`)
- Add methods on model
- Add routes
- Add actions on controller (`Activatable` concern, shared with
`LinesController`)
- Add I18n keys
Diffstat (limited to 'spec/factories')
| -rw-r--r-- | spec/factories/chouette_stop_areas.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/spec/factories/chouette_stop_areas.rb b/spec/factories/chouette_stop_areas.rb index 7f937e361..94517f856 100644 --- a/spec/factories/chouette_stop_areas.rb +++ b/spec/factories/chouette_stop_areas.rb @@ -8,5 +8,9 @@ FactoryGirl.define do      longitude {10.0 * rand}      association :stop_area_referential + +    trait :deactivated do +      deleted_at { 1.hour.ago } +    end    end  end | 
