remove spec test that is broken and not really useful
This commit is contained in:
parent
ebf71ad494
commit
1e986e704a
1 changed files with 0 additions and 14 deletions
|
@ -43,20 +43,6 @@ describe GroupOrderArticle do
|
||||||
expect(goa.tolerance).to eq(0)
|
expect(goa.tolerance).to eq(0)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'keeps track of article quantities' do
|
|
||||||
startq = startt = nil
|
|
||||||
for i in 0..6 do
|
|
||||||
goa.group_order_article_quantities.count == i
|
|
||||||
quantity, tolerance = rand(1..100), rand(0..100)
|
|
||||||
goa.update_quantities(quantity, tolerance)
|
|
||||||
startq.nil? and startq = quantity
|
|
||||||
startt.nil? and startt = tolerance
|
|
||||||
end
|
|
||||||
goaq = goa.group_order_article_quantities.last
|
|
||||||
expect(goaq.quantity).to eq(startq)
|
|
||||||
expect(goaq.tolerance).to eq(startt)
|
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue