Sha256: f6ba56efb18093fefec6f2e4cd287fad91aa818eea74a1751f66e3746011e3df

Contents?: true

Size: 225 Bytes

Versions: 31

Compression:

Stored size: 225 Bytes

Contents

RSpec.shared_context "with 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

31 entries across 31 versions & 2 rubygems

Version Path
gemsmith-15.0.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-14.11.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-14.10.1 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-14.10.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-14.9.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
rubysmith-0.5.0 lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb
rubysmith-0.4.0 lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb
gemsmith-14.8.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
rubysmith-0.3.0 lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb
gemsmith-14.7.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
rubysmith-0.2.0 lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb
rubysmith-0.1.1 lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb
rubysmith-0.1.0 lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb
gemsmith-14.6.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-14.5.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-14.4.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-14.3.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-14.2.0 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-14.1.3 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt
gemsmith-14.1.2 lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt