Sha256: 4bbce7bc2f2ec667d5ed859fb9c64ac87d665997daac53e3f5ce9ef377f46ab8

Contents?: true

Size: 480 Bytes

Versions: 2

Compression:

Stored size: 480 Bytes

Contents

begin
  require 'simplecov'
  require 'debugger'
rescue LoadError
  # ignore
end

require 'rexml/document'
require 'nokogiri'

require 'csl'

module SilentWarnings
  require 'stringio'
  #
  # Adapted form silent_warnings gist by @avdi
  # https://gist.github.com/1170926
  #
  def silent_warnings
    original_stderr = $stderr
    $stderr = StringIO.new
    yield
  ensure
    $stderr = original_stderr
  end
end

RSpec.configure do |config|
  config.include(SilentWarnings)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
csl-1.0.0.pre3 spec/spec_helper.rb
csl-1.0.0.pre2 spec/spec_helper.rb