Skip to content

Commit

Permalink
Add test to delete article
Browse files Browse the repository at this point in the history
  • Loading branch information
yksflip authored and paroga committed Oct 9, 2022
1 parent 3a38859 commit 0c5ff5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/models/article_spec.rb
Expand Up @@ -9,6 +9,12 @@
expect(article2).to be_invalid
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
article.deposit = 0
article.tax = 12
Expand Down

0 comments on commit 0c5ff5b

Please sign in to comment.