Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
90fc2759
Commit
90fc2759
authored
Jun 11, 2020
by
Erick Banks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `let` syntax
parent
db8740c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
qa/qa/specs/features/browser_ui/3_create/repository/clone_spec.rb
...ecs/features/browser_ui/3_create/repository/clone_spec.rb
+8
-6
No files found.
qa/qa/specs/features/browser_ui/3_create/repository/clone_spec.rb
View file @
90fc2759
...
...
@@ -3,14 +3,16 @@
module
QA
RSpec
.
describe
'Create'
do
describe
'Git clone over HTTP'
,
:ldap_no_tls
do
before
(
:all
)
do
@project
=
Resource
::
Project
.
fabricate_via_api!
do
|
scenario
|
let
(
:project
)
do
Resource
::
Project
.
fabricate_via_api!
do
|
scenario
|
scenario
.
name
=
'project-with-code'
scenario
.
description
=
'project for git clone tests'
end
end
before
do
Git
::
Repository
.
perform
do
|
repository
|
repository
.
uri
=
@
project
.
repository_http_location
.
uri
repository
.
uri
=
project
.
repository_http_location
.
uri
repository
.
use_default_credentials
repository
.
act
do
...
...
@@ -21,12 +23,12 @@ module QA
push_changes
end
end
@
project
.
wait_for_push_new_branch
project
.
wait_for_push_new_branch
end
it
'user performs a deep clone'
do
Git
::
Repository
.
perform
do
|
repository
|
repository
.
uri
=
@
project
.
repository_http_location
.
uri
repository
.
uri
=
project
.
repository_http_location
.
uri
repository
.
use_default_credentials
repository
.
clone
...
...
@@ -37,7 +39,7 @@ module QA
it
'user performs a shallow clone'
do
Git
::
Repository
.
perform
do
|
repository
|
repository
.
uri
=
@
project
.
repository_http_location
.
uri
repository
.
uri
=
project
.
repository_http_location
.
uri
repository
.
use_default_credentials
repository
.
shallow_clone
...
...
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