QS: Fixx rubocop for specs #25

Open
opened 2022-09-13 15:39:33 +02:00 by tk · 0 comments
Owner
--- workspace/foodsoft ‹master› » rubocop                       

Offenses:

spec/api/v1/user/financial_transactions_spec.rb:24:7: C: [Correctable] RSpec/Rails/HaveHttpStatus: Prefer expect(response).to have_http_status(200) over expect(response.status).to eq 200.
      expect(response.status).to eq 200
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/api/v1/user/group_order_articles_spec.rb:26:7: C: [Correctable] RSpec/Rails/HaveHttpStatus: Prefer expect(response).to have_http_status(200) over expect(response.status).to eq 200.
      expect(response.status).to eq 200
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
spec/lib/bank_account_information_importer_spec.rb:7:15: C: [Correctable] Style/EmptyHeredoc: Use an empty string literal instead of heredoc.
    content = <<-JSON
              ^^^^^^^

Originally posted by @tk in #7 (comment)

``` --- workspace/foodsoft ‹master› » rubocop Offenses: spec/api/v1/user/financial_transactions_spec.rb:24:7: C: [Correctable] RSpec/Rails/HaveHttpStatus: Prefer expect(response).to have_http_status(200) over expect(response.status).to eq 200. expect(response.status).to eq 200 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ spec/api/v1/user/group_order_articles_spec.rb:26:7: C: [Correctable] RSpec/Rails/HaveHttpStatus: Prefer expect(response).to have_http_status(200) over expect(response.status).to eq 200. expect(response.status).to eq 200 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ spec/lib/bank_account_information_importer_spec.rb:7:15: C: [Correctable] Style/EmptyHeredoc: Use an empty string literal instead of heredoc. content = <<-JSON ^^^^^^^ ``` _Originally posted by @tk in https://git.local-it.org/Foodsoft/foodsoft/issues/7#issuecomment-116_
tk self-assigned this 2022-09-13 15:39:43 +02:00
tk changed title from Fixx rubocop spec http status to QS: Fixx rubocop spec http status 2022-09-13 15:40:41 +02:00
tk added this to the Tests milestone 2022-09-13 15:40:46 +02:00
tk changed title from QS: Fixx rubocop spec http status to QS: Fixx rubocop for specs 2022-09-13 15:42:27 +02:00
tk added reference 25_qs_rubocop_for_specs 2022-09-13 15:50:56 +02:00
philipp added this to the Kanban project 2023-01-17 12:04:18 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Foodsoft/foodsoft#25
No description provided.