use fs as root collection, not gridfs

This commit is contained in:
Mike Dirolf 2009-02-18 17:50:07 -05:00
parent b4b4f289dd
commit acfd505061
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ module XGen
# } # }
class GridStore class GridStore
DEFAULT_ROOT_COLLECTION = 'gridfs' DEFAULT_ROOT_COLLECTION = 'fs'
DEFAULT_CONTENT_TYPE = 'text/plain' DEFAULT_CONTENT_TYPE = 'text/plain'
include Enumerable include Enumerable

View File

@ -10,8 +10,8 @@ class GridStoreTest < Test::Unit::TestCase
@@db = Mongo.new(ENV['MONGO_RUBY_DRIVER_HOST'] || 'localhost', @@db = Mongo.new(ENV['MONGO_RUBY_DRIVER_HOST'] || 'localhost',
ENV['MONGO_RUBY_DRIVER_PORT'] || Mongo::DEFAULT_PORT).db('ruby-mongo-test') ENV['MONGO_RUBY_DRIVER_PORT'] || Mongo::DEFAULT_PORT).db('ruby-mongo-test')
@@files = @@db.collection('gridfs.files') @@files = @@db.collection('fs.files')
@@chunks = @@db.collection('gridfs.chunks') @@chunks = @@db.collection('fs.chunks')
def setup def setup
@@chunks.clear @@chunks.clear