match_mongo_chunk_size/test/helper.rb

19 lines
349 B
Ruby
Raw Normal View History

2012-07-23 06:29:15 +00:00
# -*- encoding : utf-8 -*-
require_relative 'testing'
require_relative '../lib/mongoid-grid_fs.rb'
Mongoid.configure do |config|
config.connect_to('mongoid-grid_fs_test')
end
require 'stringio'
class SIO < StringIO
attr_accessor :filename
def initialize(filename, *args, &block)
@filename = filename
super(*args, &block)
end
end