Skip to content

Commit

Permalink
Maintenance rubocop
Browse files Browse the repository at this point in the history
added gem rubocop-rspec_rails as advised by rubocop
also ran rubocop autocorrect
  • Loading branch information
Samuelfaure committed Jul 7, 2024
1 parent 2d6c324 commit d5ce65b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ require:
- rubocop-rails
- rubocop-capybara
- rubocop-factory_bot
- rubocop-rspec_rails

AllCops:
NewCops: enable
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ group :development do
gem 'rubocop-rspec'
gem 'rubocop-capybara'
gem 'rubocop-factory_bot'
gem 'rubocop-rspec_rails'

gem 'better_errors'
gem 'binding_of_caller'
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ GEM
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rspec (3.0.1)
rubocop (~> 1.61)
rubocop-rspec_rails (2.30.0)
rubocop (~> 1.61)
rubocop-rspec (~> 3, >= 3.0.1)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
sass-rails (6.0.0)
Expand Down Expand Up @@ -625,6 +628,7 @@ DEPENDENCIES
rubocop-factory_bot
rubocop-rails
rubocop-rspec
rubocop-rspec_rails
sass-rails (>= 6)
sentry-rails
sentry-ruby
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/api/datapass_webhooks_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
it 'renders 422' do
subject

expect(response).to have_http_status(422)
expect(response).to have_http_status(:unprocessable_content)
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
it 'renders 422' do
subject

expect(response).to have_http_status(422)
expect(response).to have_http_status(:unprocessable_content)
end
end
end
Expand Down

0 comments on commit d5ce65b

Please sign in to comment.