Sha256: e00c5bdfdd97c9b1012b2229e8f35896e76581e19846fd34ded1dcc5caee1b8a

Contents?: true

Size: 415 Bytes

Versions: 3

Compression:

Stored size: 415 Bytes

Contents

# encoding: utf-8
require 'rubygems'
require 'bundler/setup'
require 'support/backend_constants'
require 'logger'
require 'carrierwave_backgrounder'

module WarningSuppression
  def suppress_warnings
    original_verbosity = $VERBOSE
    $VERBOSE = nil
    result = yield
    $VERBOSE = original_verbosity
    return result
  end
end

RSpec.configure do |c|
  c.mock_with :mocha
  c.include WarningSuppression
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
carrierwave_backgrounder-0.1.2 spec/spec_helper.rb
carrierwave_backgrounder-0.1.1 spec/spec_helper.rb
carrierwave_backgrounder-0.1.0 spec/spec_helper.rb