Add test to delete article
This commit is contained in:
parent
3a388596ea
commit
0c5ff5b41d
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue