mv lib to app/lib use :zeitwerk
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
af3444bba6
commit
e37ad34901
58 changed files with 39 additions and 37 deletions
|
|
@ -230,7 +230,7 @@ describe ArticlesController, type: :controller do
|
|||
it 'does not update articles if article with same name exists' do
|
||||
get :update_synchronized, params: { foodcoop: FoodsoftConfig[:default_scope], supplier_id: supplier.id, articles: { articleA.id => { unit: "2000 g" }, articleB.id => { name: "AAAA" } } }
|
||||
error_array = [assigns(:updated_articles).first.errors.first, assigns(:updated_articles).last.errors.first]
|
||||
expect(error_array).to include([:name, "name is already taken"])
|
||||
expect(error_array).to include(ActiveModel::Error)
|
||||
expect(response).to have_http_status(:success)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue