-
Notifications
You must be signed in to change notification settings - Fork 1k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test-improvement-6017: Rspec/ContextWording task grouped by ecosystem. #9758
Conversation
…with shared_context.
6401cfa
to
3294c09
Compare
@@ -35,7 +35,7 @@ | |||
let(:gemfile) { bundler_project_dependency_file("path_source", filename: "Gemfile") } | |||
it { is_expected.to eq([Pathname.new("plugins/example")]) } | |||
|
|||
context "whose path must be eval-ed" do | |||
context "when the path must be eval-ed" 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.
The broader context here is:
when the file does include a path gemspec when the path must be eval-ed
Maybe this would be nicer?
when the file does include a path gemspec with a path that must be eval-ed
@@ -65,7 +65,7 @@ | |||
end |
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.
I don't love how this reads, I would suggest removing the nesting here:
context "with a file that does include a relative path" do
# ...
context "when it needs to be evaled" do
let(:file_body) do
'require_relative "./my_file_#{raise %(hell)}"'
end
it { is_expected.to eq([]) }
end
context "when it can't be evaled" do
let(:file_body) do
'require_relative "./my_file_#{unknown_var}"'
end
it { is_expected.to eq([]) }
end
@@ -77,7 +77,7 @@ | |||
.to match_array(%w(Gemfile Gemfile.lock .ruby-version)) | |||
end | |||
|
|||
context "that can't be found" do | |||
context "when that can't be found" 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.
with a directory when that can't be found
This isn't a great sentence
@@ -93,7 +93,7 @@ | |||
end | |||
end | |||
|
|||
context "that returns a file" do | |||
context "when that returns a file" 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.
with a directory when that returns a file
Also not a great sentence
@@ -233,7 +233,7 @@ | |||
) | |||
end | |||
|
|||
context "that has a fetchable path" do | |||
context "when that has a fetchable path" 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.
Same, not a good sentence
@@ -279,7 +279,7 @@ | |||
) | |||
end | |||
|
|||
context "that has a fetchable path" do | |||
context "when that has a fetchable path" 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.
Also not a great sentence in the context
…w comments of #9758 addressed here. (#9782) * TICtxtWrd-bundler: Test Improvement, Context Wording, ecosystem bundler. * TICtxtWrd-bundler: Test Improvement, Context Wording, ecosystem bundler. * TICtxtWrd-bundler: Test Improvement, Context Wording, ecosystem bundler. * TICtxtWrd-bundler: Test Improvement, Context Wording, ecosystem bundler. * TICtxtWrd-bundler: Rebasing main. * TICtxtWrd-bundler: Test Improvement, Context Wording, ecosystem bundler. * TICtxtWrd-bundler: Fixing with code spell error. * TICtxtWrd-bundler:Fixing the codespell error. * TICtxtWrd-bundler: Fixing the lint errors. --------- Co-authored-by: “Thavachelvam <“thavaahariharangit@git.com”>
grouping Rspec/ContextWording task by ecosystem.