Skip to content

Commit

Permalink
Remove stuff that has not been needed for a while
Browse files Browse the repository at this point in the history
During the migration from Ruby 2.6 to Ruby 2.7 (first Ruby which
includes Bundler 2.x by default), this spec caused some issues because
dependabot would issue a call to the RubyGems dependency API to figure
out information about Bundler. But this is not needed these days and it
probably wasn't since the beginning, because dependabot should always
use the running Bundler version information in this case, no need to
query the API.
  • Loading branch information
deivid-rodriguez committed Sep 15, 2022
1 parent 7b6f72e commit 629d1f0
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
end
let(:source) { nil }
let(:requirement_string) { ">= 0" }
let(:rubygems_url) { "https://index.rubygems.org/api/v1/" }

describe "#latest_resolvable_version_details" do
subject { resolver.latest_resolvable_version_details }
Expand Down Expand Up @@ -142,11 +141,6 @@

let(:dependency_files) { bundler_project_dependency_files("bundler_specified") }

before do
stub_request(:get, rubygems_url + "versions/bundler.json").
to_return(status: 200, body: fixture("rubygems_responses", "versions-bundler.json"))
end

it "returns nil as resolution returns the bundler version installed by core" do
expect(subject).to be_nil
end
Expand Down

0 comments on commit 629d1f0

Please sign in to comment.