Sha256: 41569f2942b784da3cf9b172e18268d123d643a7edd0a7eb79dd42e4a35e9240
Contents?: true
Size: 402 Bytes
Versions: 2
Compression:
Stored size: 402 Bytes
Contents
RSpec.shared_context "with temporary directory" do <% if realm.build_refinements %>using Refinements::Pathnames<% end %> let(:temp_dir) { Bundler.root.join "tmp/rspec" } around do |example| <%= realm.build_refinements ? "temp_dir.make_path" : "FileUtils.mkdir_p temp_dir" %> example.run <%= realm.build_refinements ? "temp_dir.remove_tree" : "FileUtils.rm_rf temp_dir" %> end end
Version data entries
2 entries across 2 versions & 1 rubygems