Bundle update rubocop and auto correct style issues

This commit is contained in:
Patrick Gansterer 2022-10-08 16:03:19 +02:00
parent f7f8774c43
commit a81bb25512
9 changed files with 875 additions and 883 deletions

View file

@ -21,7 +21,7 @@ describe Api::V1::User::FinancialTransactionsController, type: :controller do
before { request }
it "returns status 200" do
expect(response.status).to eq 200
expect(response).to have_http_status :ok
end
end

View file

@ -23,7 +23,7 @@ describe Api::V1::User::GroupOrderArticlesController, type: :controller do
before { request }
it "returns status 200" do
expect(response.status).to eq 200
expect(response).to have_http_status :ok
end
it "returns the order_article" do

View file

@ -113,7 +113,7 @@ feature 'settling an order', js: true do
click_link I18n.t('ui.edit')
end
within("#edit_order_article_#{oa.id}") do
find('#order_article_units_to_order').set(0)
find_by_id('order_article_units_to_order').set(0)
sleep 0.25
find('input[type="submit"]').click
end
@ -135,7 +135,7 @@ feature 'settling an order', js: true do
expect(page).to have_selector('form#new_group_order_article')
within('#new_group_order_article') do
select user.ordergroup.name, :from => 'group_order_article_ordergroup_id'
find('#group_order_article_result').set(8)
find_by_id('group_order_article_result').set(8)
sleep 0.25
find('input[type="submit"]').click
end
@ -174,7 +174,7 @@ feature 'settling an order', js: true do
click_link I18n.t('finance.balancing.edit_results_by_articles.add_article')
expect(page).to have_selector('form#new_order_article')
within('#new_order_article') do
find('#order_article_article_id').select(new_article.name)
find_by_id('order_article_article_id').select(new_article.name)
sleep 0.25
find('input[type="submit"]').click
end

View file

@ -4,8 +4,7 @@ describe BankTransaction do
let(:bank_account) { create :bank_account }
it 'empty content' do
content = <<-JSON
JSON
content = ''
importer = BankAccountInformationImporter.new(bank_account)
expect(importer.import!(content)).to be_nil