rails up to 7.0and ruby to 2.7.2

mv lib to app/lib due to upgrade

removing concerns from autoload path

resolve zeitwerk issues

make foodsoft run for dev on rails 7 and ruby 2.7

fix mail file permission bug

fix database_config

fix articles controller test ActiveModell::Error

bump Gemfile.lock
This commit is contained in:
viehlieb 2023-01-06 16:12:41 +01:00 committed by Philipp Rothmann
parent d7591d46b9
commit fb8ccfea4a
53 changed files with 583 additions and 594 deletions

View file

@ -264,7 +264,7 @@ describe ArticlesController, type: :controller do
it 'does not update articles if article with same name exists' do
get_with_supplier :update_synchronized, params: { articles: { article_a.id => { unit: '2000 g' }, article_b.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