article_spec: add changed article test
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
6cbfed5654
commit
a71ca3c2dc
1 changed files with 6 additions and 0 deletions
|
@ -35,6 +35,12 @@ describe Article do
|
|||
expect(new_price).to eq 120
|
||||
end
|
||||
end
|
||||
|
||||
it 'computes changed article attributes' do # not done yet!
|
||||
article2 = build :article, supplier: supplier, name: "banana"
|
||||
expect(article.unequal_attributes(article2)[:name]).to eq "banana"
|
||||
end
|
||||
|
||||
it 'computes the gross price correctly' do
|
||||
article.deposit = 0
|
||||
article.tax = 12
|
||||
|
|
Loading…
Reference in a new issue