Sha256: 8e15bf6d8cbec4ccd09caefa91930e30a6d5c1ec64a1522fc7a1a91498d321ad
Contents?: true
Size: 1.12 KB
Versions: 9
Compression:
Stored size: 1.12 KB
Contents
begin require 'simplecov' require 'coveralls' if ENV['CI'] rescue LoadError # ignore end begin case when RUBY_PLATFORM < 'java' require 'debug' Debugger.start when defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' require 'rubinius/debugger' when defined?(RUBY_VERSION) && RUBY_VERSION < '2.0' require 'debugger' else require 'byebug' end 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) config.before :all do @style_root, @locale_root = CSL::Style.root, CSL::Locale.root CSL::Style.root = File.expand_path('../fixtures/styles', __FILE__) CSL::Locale.root = File.expand_path('../fixtures/locales', __FILE__) end config.after :all do CSL::Style.root, CSL::Locale.root = @style_root, @locale_root end end
Version data entries
9 entries across 9 versions & 1 rubygems