From 82c958606b42c8618125e3a84df61b1f68461238 Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Thu, 12 Jun 2008 09:16:53 -0700 Subject: [PATCH] version numbre spec --- spec/couch_rest_spec.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/spec/couch_rest_spec.rb b/spec/couch_rest_spec.rb index f4099f8..97e06d1 100644 --- a/spec/couch_rest_spec.rb +++ b/spec/couch_rest_spec.rb @@ -21,9 +21,13 @@ describe CouchRest do describe "tested against the current CouchDB svn revision" do it "should be up to date" do v = @cr.info["version"] - vi = v.split(/a/).pop.to_i - vi.should be >= 661484 # versions older than this will likely fail many specs - vi.should be <= 663797 # versions newer than this haven't been tried + if /incubating/.match(v) + v.should include('0.8.0') + else + vi = v.split(/a/).pop.to_i + vi.should be >= 661484 # versions older than this will likely fail many specs + vi.should be <= 663797 # versions newer than this haven't been tried + end end end