Sha256: 987b8db7dd9378f19a2f7977e20c84fdbea1b360a3ac1416067d5e30b4d7aadc
Contents?: true
Size: 603 Bytes
Versions: 35
Compression:
Stored size: 603 Bytes
Contents
require_relative '../spec_helper' DEPENDS_TEST_DIR = 'spec/fixtures/depends' DEPENDS_BASE_DIR = DEPENDS_TEST_DIR def update_appmap_index cmd = [ './exe/appmap-index', '--appmap-dir', DEPENDS_TEST_DIR ] if ENV['DEBUG'] == 'true' cmd << '--verbose' end system cmd.join(' ') or raise "Failed to update AppMap index in #{DEPENDS_TEST_DIR}" end RSpec.configure do |rspec| rspec.before do Dir.glob("#{DEPENDS_TEST_DIR}/*.appmap.json").each { |fname| FileUtils.touch fname } update_appmap_index FileUtils.rm_rf 'spec/tmp' FileUtils.mkdir_p 'spec/tmp' end end
Version data entries
35 entries across 35 versions & 1 rubygems