Sha256: 2756aac4b3e11f435684680505b0787aea7438a8efb4f588ac44adce55e37da0
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-5.0.0 | lib/gemsmith/templates/%gem_name%/spec/support/kit/temp_dir.rb.tt |