Sha256: f65ff6c669fa96d19e12d2cf57a7b977cf1c1936270a8186e2fe3ad1e1babea8
Contents?: true
Size: 437 Bytes
Versions: 2
Compression:
Stored size: 437 Bytes
Contents
require "rspec/core/shared_context" module RSpecSupportKitTempDirContext extend RSpec::Core::SharedContext let (:temp_dir) { File.expand_path "../../../../tmp/rspec", __FILE__ } end RSpec.configure do |config| config.include RSpecSupportKitTempDirContext 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-4.3.0 | lib/gemsmith/templates/%gem_name%/spec/support/kit/temp_dir.rb.tt |
gemsmith-4.2.0 | lib/gemsmith/templates/%gem_name%/spec/support/kit/temp_dir.rb.tt |