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
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