chore: rubocop
chore: fix api test conventions chore: rubocop -A spec/ chore: more rubocop -A fix failing test rubocop fixes removes helper methods that are in my opinion dead code more rubocop fixes rubocop -a --auto-gen-config
This commit is contained in:
parent
f6fb804bbe
commit
fb2b4d8a8a
331 changed files with 4263 additions and 4507 deletions
|
|
@ -1,12 +1,12 @@
|
|||
require_relative '../spec_helper'
|
||||
|
||||
feature Order, js: true do
|
||||
let(:admin) { create :user, groups: [create(:workgroup, role_orders: true)] }
|
||||
let(:article) { create :article, unit_quantity: 1 }
|
||||
let(:order) { create :order, supplier: article.supplier, article_ids: [article.id] } # need to ref article
|
||||
let(:go1) { create :group_order, order: order }
|
||||
let(:admin) { create(:user, groups: [create(:workgroup, role_orders: true)]) }
|
||||
let(:article) { create(:article, unit_quantity: 1) }
|
||||
let(:order) { create(:order, supplier: article.supplier, article_ids: [article.id]) } # need to ref article
|
||||
let(:go1) { create(:group_order, order: order) }
|
||||
let(:oa) { order.order_articles.find_by_article_id(article.id) }
|
||||
let(:goa1) { create :group_order_article, group_order: go1, order_article: oa }
|
||||
let(:goa1) { create(:group_order_article, group_order: go1, order_article: oa) }
|
||||
|
||||
before { login admin }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue