Skip to content

Commit

Permalink
Enabling RSpec/HookArgument (#9742)
Browse files Browse the repository at this point in the history
  • Loading branch information
robaiken committed May 17, 2024
1 parent dbd56f9 commit 9e61a91
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,6 @@ RSpec/FilePath:
- 'nuget/spec/dependabot/nuget/update_checker/repository_finder_spec.rb'
- 'nuget/spec/dependabot/nuget/update_checker/tfm_finder_spec.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: implicit, each, example
RSpec/HookArgument:
Exclude:
- 'common/spec/dependabot/clients/azure_spec.rb'
- 'common/spec/dependabot/clients/bitbucket_spec.rb'

# Offense count: 56
# This cop supports safe autocorrection (--autocorrect).
RSpec/HooksBeforeExamples:
Expand Down
2 changes: 1 addition & 1 deletion common/spec/dependabot/clients/azure_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
end

context "for POST" do
before :each do
before do
@request_body = "request body"
end
it "with failure count <= max_retries" do
Expand Down
2 changes: 1 addition & 1 deletion common/spec/dependabot/clients/bitbucket_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
RSpec.describe Dependabot::Clients::Bitbucket do
let(:current_user_url) { "https://api.bitbucket.org/2.0/user?fields=uuid" }

before(:each) do
before do
stub_request(:get, current_user_url)
.with(headers: { "Authorization" => "Bearer #{access_token}" })
.to_return(status: 200, body: fixture("bitbucket", "current_user.json"))
Expand Down

0 comments on commit 9e61a91

Please sign in to comment.