comment tests that are unclear how they should behave
This commit is contained in:
parent
9a12ea9efc
commit
c753ae0471
1 changed files with 8 additions and 6 deletions
|
@ -5,13 +5,15 @@ describe GroupOrder do
|
|||
let(:supplier) { FactoryGirl.create :supplier, article_count: true }
|
||||
let(:order) { FactoryGirl.create(:order, supplier: supplier, article_ids: supplier.articles.map(&:id)).reload }
|
||||
|
||||
it 'needs an order' do
|
||||
expect(FactoryGirl.build(:group_order, ordergroup: user.ordergroup)).to be_invalid
|
||||
end
|
||||
# the following two tests are currently disabled - https://github.com/foodcoops/foodsoft/issues/158
|
||||
|
||||
it 'needs an ordergroup' do
|
||||
expect(FactoryGirl.build(:group_order, order: order)).to be_invalid
|
||||
end
|
||||
#it 'needs an order' do
|
||||
# expect(FactoryGirl.build(:group_order, ordergroup: user.ordergroup)).to be_invalid
|
||||
#end
|
||||
|
||||
#it 'needs an ordergroup' do
|
||||
# expect(FactoryGirl.build(:group_order, order: order)).to be_invalid
|
||||
#end
|
||||
|
||||
describe do
|
||||
let(:go) { FactoryGirl.create :group_order, order: order, ordergroup: user.ordergroup }
|
||||
|
|
Loading…
Reference in a new issue