-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
#6017: file_updter_spec context_worrding updates. #9749
Conversation
.rubocop_todo.yml
Outdated
@@ -60,15 +60,14 @@ RSpec/ContainExactly: | |||
Exclude: | |||
- 'npm_and_yarn/spec/dependabot/npm_and_yarn/update_checker_spec.rb' | |||
|
|||
# Offense count: 30 | |||
# Offense count: 8 | |||
# Configuration parameters: Prefixes, AllowedPatterns. | |||
# Prefixes: when, with, without | |||
RSpec/ContextWording: | |||
Exclude: | |||
- 'common/spec/dependabot/pull_request_creator/message_builder_spec.rb' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can all the files be fixed in one go?
@@ -118,7 +118,7 @@ | |||
.to include("\"statesman\", \"~> 1.2.0\"") | |||
end | |||
|
|||
context "for a gems.rb setup" do | |||
context "when for a gems.rb setup" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's please try to make these sentences flow nicely, the idea of these context blocks is that, stringed together they explain in English what the test is trying to address, and those sentences should flow well, it makes it easier to understand the tests.
So in this case: when using a gems.rb setup
for example, that way the entire test will read:
Dependabot::Bundler::FileUpdater##updated_dependency_files the updated gemfile when using a gems.rb setup, it delegates to the GemfileUpdater
No description provided.