diff options
| author | Teddy Wing | 2017-12-21 18:09:21 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-12-21 18:15:55 +0100 |
| commit | 7c3837d9b5aeac60ce4ea203baba61cd99293a8b (patch) | |
| tree | 49edd506a3ecdbe5c45b0092129993e13b1f6e22 /app | |
| parent | 174d002f2a14df9e2dfd317271882668fa2a90bb (diff) | |
| download | chouette-core-7c3837d9b5aeac60ce4ea203baba61cd99293a8b.tar.bz2 | |
purchase_windows_spec: Add feature spec for destroy
Check that `PurchaseWindow`s can be destroyed, starting from the
`#index` page.
Update the i18n key used in the decorator to get the text that appears
in the alert when destroying a `PurchaseWindow` so that it correctly
corresponds to the one used in the locale file.
Refs #5366
Diffstat (limited to 'app')
| -rw-r--r-- | app/decorators/purchase_window_decorator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/decorators/purchase_window_decorator.rb b/app/decorators/purchase_window_decorator.rb index 13bc4d666..646fdea0d 100644 --- a/app/decorators/purchase_window_decorator.rb +++ b/app/decorators/purchase_window_decorator.rb @@ -18,7 +18,7 @@ class PurchaseWindowDecorator < Draper::Decorator content: I18n.t('actions.destroy'), href: h.referential_purchase_window_path(context[:referential].id, object), method: :delete, - data: { confirm: h.t('purchase_window.actions.destroy_confirm') } + data: { confirm: h.t('purchase_windows.actions.destroy_confirm') } ) end |
