made all the specs run on 1.9.2, yay :)

This commit is contained in:
Matt Aimonetti 2009-08-01 14:21:18 -07:00
parent d1d8da513c
commit a17df45fc3
15 changed files with 23 additions and 17 deletions

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require File.expand_path("../../../spec_helper", __FILE__)
describe CouchRest do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require File.expand_path("../../../spec_helper", __FILE__)
describe CouchRest::Database do
before(:each) do
@ -263,7 +263,11 @@ describe CouchRest::Database do
r['ok'].should == true
doc = @db.get("attach-this")
attachment = @db.fetch_attachment(doc,"couchdb.png")
attachment.should == image
if attachment.respond_to?(:net_http_res)
attachment.net_http_res.body.should == image
else
attachment.should == image
end
end
end

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require File.expand_path("../../../spec_helper", __FILE__)
describe CouchRest::Design do

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require File.expand_path("../../../spec_helper", __FILE__)
class Video < CouchRest::Document; end

View file

@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require File.expand_path("../../../spec_helper", __FILE__)
describe CouchRest::Server do