version numbre spec
This commit is contained in:
parent
9a39d0b1cb
commit
82c958606b
|
@ -21,9 +21,13 @@ describe CouchRest do
|
||||||
describe "tested against the current CouchDB svn revision" do
|
describe "tested against the current CouchDB svn revision" do
|
||||||
it "should be up to date" do
|
it "should be up to date" do
|
||||||
v = @cr.info["version"]
|
v = @cr.info["version"]
|
||||||
vi = v.split(/a/).pop.to_i
|
if /incubating/.match(v)
|
||||||
vi.should be >= 661484 # versions older than this will likely fail many specs
|
v.should include('0.8.0')
|
||||||
vi.should be <= 663797 # versions newer than this haven't been tried
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue