comment tests that are unclear how they should behave

This commit is contained in:
wvengen 2013-07-25 01:07:41 +02:00
parent 9a12ea9efc
commit c753ae0471

View file

@ -5,13 +5,15 @@ describe GroupOrder do
let(:supplier) { FactoryGirl.create :supplier, article_count: true } let(:supplier) { FactoryGirl.create :supplier, article_count: true }
let(:order) { FactoryGirl.create(:order, supplier: supplier, article_ids: supplier.articles.map(&:id)).reload } let(:order) { FactoryGirl.create(:order, supplier: supplier, article_ids: supplier.articles.map(&:id)).reload }
it 'needs an order' do # the following two tests are currently disabled - https://github.com/foodcoops/foodsoft/issues/158
expect(FactoryGirl.build(:group_order, ordergroup: user.ordergroup)).to be_invalid
end
it 'needs an ordergroup' do #it 'needs an order' do
expect(FactoryGirl.build(:group_order, order: order)).to be_invalid # expect(FactoryGirl.build(:group_order, ordergroup: user.ordergroup)).to be_invalid
end #end
#it 'needs an ordergroup' do
# expect(FactoryGirl.build(:group_order, order: order)).to be_invalid
#end
describe do describe do
let(:go) { FactoryGirl.create :group_order, order: order, ordergroup: user.ordergroup } let(:go) { FactoryGirl.create :group_order, order: order, ordergroup: user.ordergroup }