debian-mirror-gitlab/spec/services/projects/gitlab_projects_import_service_spec.rb

18 lines
541 B
Ruby
Raw Normal View History

2019-07-31 22:56:46 +05:30
# frozen_string_literal: true
2018-03-17 18:26:18 +05:30
require 'spec_helper'
describe Projects::GitlabProjectsImportService do
set(:namespace) { create(:namespace) }
2018-05-09 12:01:36 +05:30
let(:path) { 'test-path' }
2018-11-18 11:00:15 +05:30
let(:file) { fixture_file_upload('spec/fixtures/project_export.tar.gz') }
2018-05-09 12:01:36 +05:30
let(:overwrite) { false }
let(:import_params) { { namespace_id: namespace.id, path: path, file: file, overwrite: overwrite } }
2018-11-18 11:00:15 +05:30
2018-05-09 12:01:36 +05:30
subject { described_class.new(namespace.owner, import_params) }
2018-03-17 18:26:18 +05:30
describe '#execute' do
2018-11-18 11:00:15 +05:30
it_behaves_like 'gitlab projects import validations'
2018-03-17 18:26:18 +05:30
end
end