Sha256: 7348bdc0663a07f0784ce2f4b252848fc00dfc8174c26ed49c6d1745619ca14b

Contents?: true

Size: 220 Bytes

Versions: 10

Compression:

Stored size: 220 Bytes

Contents

RSpec.shared_context "Temporary Directory", :temp_dir 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

10 entries across 10 versions & 1 rubygems

Version Path
gemsmith-13.4.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-13.3.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-13.2.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-13.1.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-13.0.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-12.4.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-12.3.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-12.2.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-12.1.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-12.0.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt