From 1e986e704aa2e4767e035c4d072d11cbd26f7b94 Mon Sep 17 00:00:00 2001 From: wvengen Date: Thu, 25 Jul 2013 00:07:39 +0200 Subject: [PATCH] remove spec test that is broken and not really useful --- spec/models/group_order_article_spec.rb | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/spec/models/group_order_article_spec.rb b/spec/models/group_order_article_spec.rb index 84e5627f..c20542a7 100644 --- a/spec/models/group_order_article_spec.rb +++ b/spec/models/group_order_article_spec.rb @@ -43,20 +43,6 @@ describe GroupOrderArticle do expect(goa.tolerance).to eq(0) 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