BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
2a135866
Commit
2a135866
authored
May 05, 2016
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added more tests to integration spec
parent
f927e728
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
import_file_spec.rb
spec/features/projects/import_export/import_file_spec.rb
+11
-3
No files found.
spec/features/projects/import_export/import_file_spec.rb
View file @
2a135866
...
@@ -7,6 +7,7 @@ feature 'project import', feature: true, js: true do
...
@@ -7,6 +7,7 @@ feature 'project import', feature: true, js: true do
let!
(
:namespace
)
{
create
(
:namespace
,
name:
"asd"
,
owner:
user
)
}
let!
(
:namespace
)
{
create
(
:namespace
,
name:
"asd"
,
owner:
user
)
}
let
(
:file
)
{
File
.
join
(
Rails
.
root
,
'spec'
,
'features'
,
'projects'
,
'import_export'
,
'test_project_export.tar.gz'
)
}
let
(
:file
)
{
File
.
join
(
Rails
.
root
,
'spec'
,
'features'
,
'projects'
,
'import_export'
,
'test_project_export.tar.gz'
)
}
let
(
:export_path
)
{
"
#{
Dir
::
tmpdir
}
/import_file_spec"
}
let
(
:export_path
)
{
"
#{
Dir
::
tmpdir
}
/import_file_spec"
}
let
(
:project
)
{
Project
.
last
}
background
do
background
do
allow_any_instance_of
(
Gitlab
::
ImportExport
).
to
receive
(
:storage_path
).
and_return
(
export_path
)
allow_any_instance_of
(
Gitlab
::
ImportExport
).
to
receive
(
:storage_path
).
and_return
(
export_path
)
login_as
(
user
)
login_as
(
user
)
...
@@ -32,8 +33,15 @@ feature 'project import', feature: true, js: true do
...
@@ -32,8 +33,15 @@ feature 'project import', feature: true, js: true do
click_on
'Continue to the next step'
# import starts
click_on
'Continue to the next step'
# import starts
expect
(
Project
.
last
).
not_to
be_nil
expect
(
project
).
not_to
be_nil
expect
(
Project
.
last
.
issues
).
not_to
be_empty
expect
(
project
.
issues
).
not_to
be_empty
expect
(
Project
.
last
.
repo_exists?
).
to
be
true
expect
(
project
.
merge_requests
).
not_to
be_empty
expect
(
project
.
repo_exists?
).
to
be
true
expect
(
wiki_exists?
).
to
be
true
end
def
wiki_exists?
wiki
=
ProjectWiki
.
new
(
project
)
File
.
exists?
(
wiki
.
repository
.
path_to_repo
)
&&
!
wiki
.
repository
.
empty?
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment