From 3dead1647450c4b7825bdceefc21795e88a59a48 Mon Sep 17 00:00:00 2001 From: Andy Brody Date: Thu, 6 Mar 2014 18:18:07 -0800 Subject: [PATCH] Add a test on the version number. This is pretty dumb, but at least it would prevent another 0.0.0 regression. --- spec/unit/restclient_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/unit/restclient_spec.rb b/spec/unit/restclient_spec.rb index b6d2ce8..28a2cc9 100644 --- a/spec/unit/restclient_spec.rb +++ b/spec/unit/restclient_spec.rb @@ -70,4 +70,10 @@ describe RestClient do end end + describe 'version' do + it 'has a version ~> 1.7.0.alpha' do + ver = Gem::Version.new(RestClient.version) + Gem::Requirement.new('~> 1.7.0.alpha').should be_satisfied_by(ver) + end + end end