1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Fix up version sanity test to be less restrictive.

This commit is contained in:
Andy Brody 2017-04-28 01:21:47 -04:00
parent 26cc0335a6
commit c360e4df8d

View file

@ -71,9 +71,10 @@ describe RestClient do
end end
describe 'version' do describe 'version' do
it 'has a version ~> 2.0.0.alpha' do # test that there is a sane version number to avoid accidental 0.0.0 again
it 'has a version > 2.0.0.alpha, < 3.0' do
ver = Gem::Version.new(RestClient.version) ver = Gem::Version.new(RestClient.version)
expect(Gem::Requirement.new('~> 2.0.0.alpha')).to be_satisfied_by(ver) expect(Gem::Requirement.new('> 2.0.0.alpha', '< 3.0')).to be_satisfied_by(ver)
end end
end end
end end