This commit is contained in:
Pete Matsyburka
2023-12-03 20:24:43 +02:00
parent e27606f443
commit 2822b0086a
+2 -2
View File
@@ -42,10 +42,10 @@ RSpec.describe 'Template' do
visit template_path(template)
end
it 'removes a template' do
it 'archives a template' do
expect do
accept_confirm('Are you sure?') do
click_button 'Remove'
click_button 'Archive'
end
end.to change { Template.active.count }.by(-1)