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

Version Path
donjon-2.0.1 spec/support/repos.rb
donjon-2.0.0 spec/support/repos.rb
donjon-1.0.1 spec/support/repos.rb
donjon-1.0.0 spec/support/repos.rb
donjon-0.0.5 spec/support/repos.rb
donjon-0.0.4 spec/support/repos.rb
donjon-0.0.3 spec/support/repos.rb
donjon-0.0.2 spec/support/repos.rb
donjon-0.0.1 spec/support/repos.rb