mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-14 15:16:04 +10:00
few fixes and new integration spec -WIP
This commit is contained in:
@@ -66,7 +66,6 @@ module Gitlab
|
||||
end
|
||||
|
||||
def process_sub_relation(relation_hash, relation_item, sub_relation)
|
||||
sub_relation_object = nil
|
||||
if relation_hash.is_a?(Array)
|
||||
sub_relation_object = create_relation(sub_relation, relation_hash)
|
||||
else
|
||||
|
||||
@@ -14,7 +14,7 @@ module Gitlab
|
||||
|
||||
FileUtils.mkdir_p(repos_path)
|
||||
FileUtils.mkdir_p(path_to_repo)
|
||||
untar_czf(archive: @path, dir: path_to_repo)
|
||||
untar_zxf(archive: @path, dir: path_to_repo)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
require 'spec_helper'
|
||||
|
||||
feature 'project import', feature: true, js: true do
|
||||
include Select2Helper
|
||||
|
||||
let(:user) { create(:user) }
|
||||
let!(:namespace) { create(:namespace, name: "asd", owner: user) }
|
||||
background do
|
||||
login_as(user)
|
||||
end
|
||||
|
||||
scenario 'user imports an exported project successfully' do
|
||||
visit new_project_path
|
||||
|
||||
select2('asd', from: '#project_namespace_id')
|
||||
fill_in :project_path, with:'test-project-path', visible: true
|
||||
click_link 'GitLab project'
|
||||
|
||||
expect(page).to have_content('GitLab export file')
|
||||
expect(URI.parse(current_url).query).to eq('namespace_id=asd&path=test-project-path')
|
||||
end
|
||||
end
|
||||
Binary file not shown.
Reference in New Issue
Block a user