Skip to content

Commit

Permalink
TICtxtWrd-gs: TestImprovements, Context Wording, ecosystem git submod…
Browse files Browse the repository at this point in the history
…ules. (#9849)

Co-authored-by: “Thavachelvam <“thavaahariharangit@git.com”>
  • Loading branch information
thavaahariharangit and “Thavachelvam authored May 29, 2024
1 parent acf7fc4 commit 1fa523b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ RSpec/ContextWording:
- 'composer/**/*'
- 'devcontainers/**/*'
- 'docker/**/*'
- 'git_submodules/**/*'
- 'github_actions/**/*'
- 'go_modules/**/*'
- 'gradle/**/*'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
)
end

context "that are fetchable" do
context "when dealing with a fetchable path" do
before do
stub_request(:get, url + "about/documents?ref=sha")
.with(headers: { "Authorization" => "token token" })
Expand Down Expand Up @@ -88,7 +88,7 @@
end
end

context "that has an unfetchable path" do
context "when dealing with an unfetchable path" do
before do
stub_request(:get, url + "about/documents?ref=sha")
.with(headers: { "Authorization" => "token token" })
Expand All @@ -104,7 +104,7 @@
end
end

context "that has a path that returns a file" do
context "when the path returns a file" do
before do
stub_request(:get, url + "about/documents?ref=sha")
.with(headers: { "Authorization" => "token token" })
Expand All @@ -128,7 +128,7 @@
end
end

context "that has a path that returns a repo" do
context "when the path returns a repo" do
before do
stub_request(:get, url + "about/documents?ref=sha")
.with(headers: { "Authorization" => "token token" })
Expand Down Expand Up @@ -174,7 +174,7 @@
)
end

context "that are fetchable" do
context "when dealing with a fetchable path" do
before do
stub_request(:get, url + "about%2Fdocuments?ref=sha")
.to_return(
Expand Down Expand Up @@ -208,7 +208,7 @@
end
end

context "that has an unfetchable path" do
context "when dealing with an unfetchable path" do
before do
stub_request(:get, url + "about%2Fdocuments?ref=sha")
.to_return(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@
describe "#can_update?" do
subject { checker.can_update?(requirements_to_unlock: :own) }

context "given an outdated dependency" do
context "when dealing with an outdated dependency" do
before { allow(checker).to receive(:latest_version).and_return("sha2") }

it { is_expected.to be_truthy }
end

context "given an up-to-date dependency" do
context "when dealing with an up-to-date dependency" do
before do
allow(checker)
.to receive(:latest_version)
Expand Down

0 comments on commit 1fa523b

Please sign in to comment.