Sha256: 1b9c76feccffdccf4db235e770432aae79ea0aa8924146ccd8cdee7de2db158a
Contents?: true
Size: 470 Bytes
Versions: 3
Compression:
Stored size: 470 Bytes
Contents
require "rspec/core/shared_context" module RSpec module Kit module TempDirContext extend RSpec::Core::SharedContext let(:temp_dir) { File.expand_path "../../../../tmp/rspec", __FILE__ } end end end RSpec.configure do |config| config.include RSpec::Kit::TempDirContext config.before do |example| if example.metadata[:temp_dir] FileUtils.rm_rf(temp_dir) if File.exist?(temp_dir) FileUtils.mkdir_p(temp_dir) end end end
Version data entries
3 entries across 3 versions & 1 rubygems