make sure price spec works when price is zero

This commit is contained in:
wvengen 2013-07-25 09:42:29 +02:00
parent e9ed6f8c0f
commit b302cbde4f
1 changed files with 6 additions and 2 deletions

View File

@ -21,8 +21,12 @@ describe Article do
expect(article.gross_price).to be >= article.price
end
it 'fc-price > gross price' do
expect(article.fc_price).to be > article.gross_price
it 'fc-price >= gross price' do
if article.gross_price > 0
expect(article.fc_price).to be > article.gross_price
else
expect(article.fc_price).to be >= article.gross_price
end
end
it 'knows when it is deleted' do