Sha256: df7aa4b0cd5ea340c770385a2ca64a87ed6b28af01738879720038461455fb8b

Contents?: true

Size: 226 Bytes

Versions: 22

Compression:

Stored size: 226 Bytes

Contents

RSpec.shared_context "Temporary Directory", :temp_dir do
  let(:temp_dir) { File.join Bundler.root, "tmp", "rspec" }

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
gemsmith-11.3.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-11.2.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-11.1.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-11.0.1 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-11.0.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-10.4.2 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-10.4.1 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-10.4.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-10.3.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-10.2.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-10.1.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-10.0.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-9.6.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-9.5.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-9.4.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-9.3.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-9.2.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-9.1.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-9.0.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-8.2.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt