Sha256: 65f2f157f70f4ba172be0252f7210d29a000848091fc7157dc031d98eb104bea
Contents?: true
Size: 859 Bytes
Versions: 3
Compression:
Stored size: 859 Bytes
Contents
require 'rubygems' require 'bundler' Bundler.require(:default, :development, :test) version = RUBY_VERSION.split(/\./).map(&:to_i) if((version[0] == 1 && version[1] >= 9) || (version[0] >= 2)) require 'simplecov' require 'json' SimpleCov.start end 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mrjoy-bundler-audit-0.3.6 | spec/spec_helper.rb |
mrjoy-bundler-audit-0.3.5 | spec/spec_helper.rb |
mrjoy-bundler-audit-0.3.4 | spec/spec_helper.rb |