Add test to delete article

This commit is contained in:
Philipp Rothmann 2022-10-06 12:27:34 +02:00 committed by Patrick Gansterer
parent 3a388596ea
commit 0c5ff5b41d

View file

@ -9,6 +9,12 @@ describe Article do
expect(article2).to be_invalid expect(article2).to be_invalid
end end
it 'can be deleted' do
expect(article).not_to be_deleted
article.mark_as_deleted
expect(article).to be_deleted
end
it 'computes the gross price correctly' do it 'computes the gross price correctly' do
article.deposit = 0 article.deposit = 0
article.tax = 12 article.tax = 12