Sha256: b12990667f2eeed6a248a6fb303ba8bb25dcbef11557c3f518733caa0586631f

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

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

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

2 entries across 2 versions & 1 rubygems

Version Path
carrierwave_backgrounder-0.0.9 spec/spec_helper.rb
carrierwave_backgrounder-0.0.8 spec/spec_helper.rb