Skip to content
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

Merged
merged 4 commits into from
May 17, 2024

Conversation

thavaahariharangit
Copy link
Contributor

@thavaahariharangit thavaahariharangit commented May 17, 2024

grouping Rspec/ContextWording task by ecosystem.

  1. PR can be easily reviewed as less number of files updated per PR.
  2. Able to Run test in local based on the ecosystem before pushing to remote PR.

@thavaahariharangit thavaahariharangit requested a review from a team as a code owner May 17, 2024 10:43
@github-actions github-actions bot added the L: ruby:bundler RubyGems via bundler label May 17, 2024
@@ -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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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

@thavaahariharangit thavaahariharangit merged commit 85dcd0b into main May 17, 2024
172 checks passed
@thavaahariharangit thavaahariharangit deleted the harry/test-improvement-6017 branch May 17, 2024 16:13
thavaahariharangit added a commit that referenced this pull request May 24, 2024
…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”>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: ruby:bundler RubyGems via bundler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants