From 735cc194afa10044e317434aed05e057d5ff37ae Mon Sep 17 00:00:00 2001 From: Tobias Kneuker Date: Tue, 13 Sep 2022 15:43:21 +0200 Subject: [PATCH] fixxing minor rubocop offenses for specs --- spec/api/v1/user/financial_transactions_spec.rb | 2 +- spec/api/v1/user/group_order_articles_spec.rb | 2 +- spec/lib/bank_account_information_importer_spec.rb | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/api/v1/user/financial_transactions_spec.rb b/spec/api/v1/user/financial_transactions_spec.rb index b8cb37e6..6c412369 100644 --- a/spec/api/v1/user/financial_transactions_spec.rb +++ b/spec/api/v1/user/financial_transactions_spec.rb @@ -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 diff --git a/spec/api/v1/user/group_order_articles_spec.rb b/spec/api/v1/user/group_order_articles_spec.rb index e6f08c17..2449e3ca 100644 --- a/spec/api/v1/user/group_order_articles_spec.rb +++ b/spec/api/v1/user/group_order_articles_spec.rb @@ -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 diff --git a/spec/lib/bank_account_information_importer_spec.rb b/spec/lib/bank_account_information_importer_spec.rb index 53b9cad3..40c3b1ea 100644 --- a/spec/lib/bank_account_information_importer_spec.rb +++ b/spec/lib/bank_account_information_importer_spec.rb @@ -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 -- 2.40.1