Sha256: ea99831cfbaae6bdfc74092a5fea13cc6255c94cea8d70e0f9ca5b0d5f9352d0
Contents?: true
Size: 1.51 KB
Versions: 1
Compression:
Stored size: 1.51 KB
Contents
$TESTING = true require "simplecov" SimpleCov.start do add_filter "/spec" minimum_coverage(75) if ENV['CI'] require 'simplecov-lcov' SimpleCov::Formatter::LcovFormatter.config do |c| c.report_with_single_file = true c.single_report_path = 'coverage/lcov.info' end formatter SimpleCov::Formatter::LcovFormatter end end $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require "rds_rotate_db_snapshots" require "rdoc" require "rspec" require "diff/lcs" # You need diff/lcs installed to run specs. # require 'stringio' require "webmock/rspec" WebMock.disable_net_connect!(allow: "coveralls.io") $0 = "rds_rotate_db_snapshots" ARGV.clear RSpec.configure do |config| config.before do ARGV.replace [] end config.expect_with :rspec do |c| c.syntax = :expect end # def capture(stream) # begin # stream = stream.to_s # eval "$#{stream} = StringIO.new" # yield # result = eval("$#{stream}").string # ensure # eval("$#{stream} = #{stream.upcase}") # end # result # end def source_root File.join(File.dirname(__FILE__), "fixtures") end def destination_root File.join(File.dirname(__FILE__), "sandbox") end def silence_warnings old_verbose = $VERBOSE $VERBOSE = nil yield ensure $VERBOSE = old_verbose end # true if running on windows, used for conditional spec skips # # @return [TrueClass/FalseClass] def windows? Gem.win_platform? end # alias silence capture end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rds-rotate-db-snapshots-0.5.2 | spec/helper.rb |