Skip to content

Commit

Permalink
Add a max allowed version to avoid flapping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brrygrdn committed Oct 8, 2020
1 parent 608c833 commit c0634e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@
context "when an old required ruby is specified in the gemspec" do
let(:gemspec_fixture_name) { "old_required_ruby" }
let(:dependency_name) { "statesman" }
let(:latest_allowable_version) { "7.2.0" }

it "takes the minimum ruby version into account" do
expect(resolver.latest_resolvable_version_details[:version]).
Expand All @@ -435,7 +436,7 @@

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

0 comments on commit c0634e1

Please sign in to comment.