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

View file

@ -21,8 +21,12 @@ describe Article do
expect(article.gross_price).to be >= article.price
end
it 'fc-price > gross price' do
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