Sha256: 0ebff28b7ab20c591468daba683d2af6bbe15bfdafdac06adac2972bcccc0b98
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
require 'rubygems' require 'bundler' Bundler.require(:default, :development, :test) require 'simplecov' SimpleCov.start require 'rspec' require 'tmpdir' require 'bundler/audit' require 'bundler/audit/version' module Helpers def sh(command, options={}) Bundler.with_clean_env do ENV["SIMPLECOV_COMMAND_NAME"] = example.full_description result = `#{command} 2>&1` raise "FAILED #{command}\n#{result}" if $?.success? == !!options[:fail] result end end def decolorize(string) string.gsub(/\e\[\d+m/, "") end end include Bundler::Audit RSpec.configure do |config| config.include Helpers config.before(:suite) do Database.path = Dir.mktmpdir('ruby-advisory-db') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mrjoy-bundler-audit-0.3.7 | spec/spec_helper.rb |