Skip to content

Commit

Permalink
Enabling RSpec/Focus (#9740)
Browse files Browse the repository at this point in the history
  • Loading branch information
robaiken committed May 16, 2024
1 parent 7229b3e commit 1663749
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,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).
RSpec/Focus:
Exclude:
- 'common/spec/dependabot/file_fetchers/base_spec.rb'
- 'common/spec/dependabot/pull_request_creator/message_builder_spec.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
Expand Down
2 changes: 1 addition & 1 deletion common/spec/dependabot/file_fetchers/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,7 @@ def fetch_files
end
end

context "when a retryable error occurs", focus: true do
context "when a retryable error occurs" do
let(:retryable_error) do
proc {
raise Dependabot::SharedHelpers::HelperSubprocessFailed.new(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2651,7 +2651,7 @@ def commits_details(base:, head:)
end
end

it "has the correct message", focus: true do
it "has the correct message" do
expect(pr_message).to include(
"| Dependency Name | Ignore Conditions |\n" \
"| --- | --- |\n" \
Expand Down

0 comments on commit 1663749

Please sign in to comment.