Skip to content

Commit

Permalink
Remove v1 tests for scenarios without a lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
brrygrdn committed Apr 6, 2021
1 parent 8d4acef commit ffcc1ac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,18 +445,6 @@
to eq(Gem::Version.new("2.0.1"))
end

context "that isn't satisfied by the dependencies", :bundler_v1_only do
let(:dependency_files) do
bundler_project_dependency_files("imports_gemspec_version_clash_old_required_ruby_no_lockfile")
end
let(:current_version) { "3.0.1" }

it "ignores the minimum ruby version in the gemspec" do
expect(resolver.latest_resolvable_version_details[:version]).
to eq(Gem::Version.new("7.2.0"))
end
end

context "that isn't satisfied by the dependencies", :bundler_v2_only do
let(:dependency_files) do
bundler_project_dependency_files("imports_gemspec_version_clash_old_required_ruby_no_lockfile")
Expand Down
9 changes: 0 additions & 9 deletions bundler/spec/dependabot/bundler/update_checker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1367,15 +1367,6 @@
to_return(status: 401)
end

it "raises a helpful error", :bundler_v1_only do
expect { checker.latest_resolvable_version }.
to raise_error do |error|
expect(error).to be_a(Dependabot::GitDependenciesNotReachable)
expect(error.dependency_urls).
to eq(["git://github.com/fundingcircle/prius.git"])
end
end

it "raises a helpful error", :bundler_v2_only do
expect { checker.latest_resolvable_version }.
to raise_error do |error|
Expand Down

0 comments on commit ffcc1ac

Please sign in to comment.