Sha256: ead4c4554f5170f0a4a831e3f3c7d9427f621cb4534a60e7821b9b1d1e605377

Contents?: true

Size: 214 Bytes

Versions: 6

Compression:

Stored size: 214 Bytes

Contents

RSpec.shared_context "with temporary directory" do
  let(:temp_dir) { Bundler.root.join "tmp", "rspec" }

  around do |example|
    FileUtils.mkdir_p temp_dir
    example.run
    FileUtils.rm_rf temp_dir
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gemsmith-15.5.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-15.4.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-15.3.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-15.2.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-15.1.1 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-15.1.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt