Skip to content

Commit

Permalink
Merge pull request #3270 from dependabot/jurre/bundler-fix-flaky-specs
Browse files Browse the repository at this point in the history
bundler: Fix flaky specs by checking major version unlock only
  • Loading branch information
feelepxyz authored Mar 15, 2021
2 parents c603197 + f74040b commit c129d85
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@
let(:current_version) { "1.4.0" }

let(:dependency_files) { project_dependency_files("bundler1/git_source_circular") }
its([:version]) { is_expected.to eq(Gem::Version.new("2.2.0")) }

it "unlocks the version" do
expect(resolver.latest_resolvable_version_details[:version].canonical_segments.first).to eq(2)
end
end

context "with a ruby exec command that fails" do
Expand Down Expand Up @@ -339,8 +342,7 @@
end

it "unlocks the latest version" do
expect(resolver.latest_resolvable_version_details[:version]).
to eq(Gem::Version.new("2.2.0"))
expect(resolver.latest_resolvable_version_details[:version].canonical_segments.first).to eq(2)
end

context "with an upper bound that is lower than the current req" do
Expand Down

0 comments on commit c129d85

Please sign in to comment.