use fs as root collection, not gridfs
This commit is contained in:
parent
b4b4f289dd
commit
acfd505061
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue