git_spec.rb revision 7b1e12286a360e4bfd9b54f97c2ad1d1a561c77d
require 'spec_helper'
describe "git import" do
let(:tmpdir){ }
before do
# clean up
[remote_path, git_root, daemon_root].each{|path| path=Pathname.new(path); path.rmtree if path.exist? }
# create remote repo
commit_count.times do |n|
end
@repository = Repository.import_remote('git', user, "file://#{remote_path}", 'local import', description: 'just an imported repo')
# Run clone job
end
pending 'read_only'
end
end
end
end
end
@repository.ontologies.each do |o|
end
end
before do
commit_count.times do |n|
m = n+commit_count
end
@repository.user = user # it's crucial to set the user to the current user when synchronizing a repository
end
end
end
@repository.ontologies.each do |o|
end
end
end
end