Sha256: bbd72edb53c99e4e6da1fba891e32d923a76deb61c494022c0730eea0d2f95fb

Contents?: true

Size: 495 Bytes

Versions: 3

Compression:

Stored size: 495 Bytes

Contents

# -*- encoding : utf-8 -*-

require 'rails'
require 'stringio'

class SIO < StringIO
  attr_accessor :filename

  def initialize(filename, *args, &block)
    @filename = filename
    super(*args, &block)
  end
end

require_relative 'testing'
require_relative '../lib/mongoid/grid_fs'

Mongoid.configure do |config|
  config.connect_to('mongoid-grid_fs_test')
end

# Avoid annoying deprecation warning
if I18n.respond_to?(:enforce_available_locales=)
  I18n.enforce_available_locales = false
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-grid_fs-2.2.2 test/helper.rb
mongoid-grid_fs-2.2.1 test/helper.rb
mongoid-grid_fs-2.2.0 test/helper.rb