Sha256: 80c517eb0b419fcee10eef995540fc1570a4420d5259c59c5aa526c65de744e5
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
require 'bundler' begin Bundler.setup rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end 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' else require 'debugger' end rescue LoadError # ignore end require 'citeproc/ruby' module Fixtures PATH = File.expand_path('../fixtures', __FILE__) Dir[File.join(PATH, '*.rb')].each do |fixture| require fixture end end 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.include(Fixtures) config.before :all do @style_root, @locale_root = CSL::Style.root, CSL::Locale.root CSL::Style.root = File.join(Fixtures::PATH, 'styles') CSL::Locale.root = File.join(Fixtures::PATH, 'locales') end config.after :all do CSL::Style.root, CSL::Locale.root = @style_root, @locale_root end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
citeproc-ruby-1.0.0 | spec/spec_helper.rb |