blob: 0840f7724523cc541b9e1d3c757a4c32b763976f (
plain)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
RSpec.describe Bundler::Resolver::Candidate do
it "compares fine" do
version1 = described_class.new("1.12.5", :specs => [Gem::Specification.new("foo", "1.12.5") {|s| s.platform = Gem::Platform::RUBY }])
version2 = described_class.new("1.12.5")
expect(version1 >= version2).to be true
end
end
|