Sha256: ede3e5d71d072948075dba7ee9fd6f2c9fd37e274f636ff12382a961b014b971
Contents?: true
Size: 533 Bytes
Versions: 15
Compression:
Stored size: 533 Bytes
Contents
require 'rspec' require 'taperole' require 'fileutils' starting_directory = Dir.pwd tape_testing_dir = '/tmp/tape-testing' RSpec.configure do |config| config.before(:suite) do Dir.mkdir(tape_testing_dir) Dir.chdir(tape_testing_dir) end config.before(:each) do FileUtils.rm_rf(Dir.glob("#{tape_testing_dir}/*")) FileUtils.touch("#{tape_testing_dir}/.gitignore") Dir.chdir(tape_testing_dir) end config.after(:suite) do Dir.chdir(starting_directory) FileUtils.rm_rf(tape_testing_dir) end end
Version data entries
15 entries across 15 versions & 1 rubygems