Sha256: 53481956a76d568dd8d353b798e206c265ae3b0d23b8473472e0407079663a92
Contents?: true
Size: 282 Bytes
Versions: 9
Compression:
Stored size: 282 Bytes
Contents
require 'spec_helper' require 'openssl' require 'donjon/repository' def let_repo(name) let(name) do id = "%08x" % rand(1<<32) Donjon::Repository.new("tmp/repo-#{id}") end after do send(name).tap do |repo| repo.rmtree if repo.exist? end end end
Version data entries
9 entries across 9 versions & 1 rubygems