require 'file_model' require 'vos' rspec do def file_model_storage '/tmp/file_model'.to_dir end class << self def with_file_model ::FileModel::ClassMethods.class_eval do def box ::FileModel.box end end tmp = '/tmp/file_model'.to_dir before do tmp.destroy.create FileModel.box = Vos::Box.new(Vos::Drivers::Local.new(tmp.path)) end after{tmp.destroy} end end end