Skip to content

Commit

Permalink
Enabling RSpec/VoidExpect (#9738)
Browse files Browse the repository at this point in the history
Merging and closing issue
  • Loading branch information
robaiken authored Jun 5, 2024
1 parent 4cce17c commit de34b53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,3 @@ RSpec/VerifiedDoubles:
- 'updater/spec/dependabot/file_fetcher_command_spec.rb'
- 'updater/spec/dependabot/sentry/sentry_context_processor_spec.rb'
- 'updater/spec/dependabot/update_files_command_spec.rb'

# Offense count: 2
RSpec/VoidExpect:
Exclude:
- 'npm_and_yarn/spec/dependabot/npm_and_yarn/update_checker/dependency_files_builder_spec.rb'
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def project_dependency_file(file_name)
expect(Dir.children(".")).to match_array(
%w(package.json .npmrc)
)
expect(File.empty?(".npmrc"))
expect(File.read(".npmrc")).to be_empty
end
end
end
Expand All @@ -90,7 +90,7 @@ def project_dependency_file(file_name)
expect(Dir.children(".")).to match_array(
%w(package.json .npmrc .yarnrc)
)
expect(File.empty?(".npmrc"))
expect(File.read(".npmrc")).not_to be_empty
end
end
end
Expand Down

0 comments on commit de34b53

Please sign in to comment.