views: display auto-archive date on procedure description
This commit is contained in:
parent
59346ee868
commit
38eb60f2ac
5 changed files with 71 additions and 0 deletions
10
spec/helpers/procedure_helper_spec.rb
Normal file
10
spec/helpers/procedure_helper_spec.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
RSpec.describe ProcedureHelper, type: :helper do
|
||||
let(:auto_archive_date) { Time.zone.local(2020, 8, 2, 12, 00) }
|
||||
let(:procedure) { create(:procedure, auto_archive_on: auto_archive_date) }
|
||||
|
||||
subject { show_auto_archive(procedure) }
|
||||
|
||||
it "displays the day before the auto archive date (to account for the '23h59' ending time)" do
|
||||
expect(subject).to eq "1 août 2020"
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue