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
16c2a35b
Commit
16c2a35b
authored
Feb 21, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
91316ac4
cd401a58
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
11 deletions
+23
-11
spec/javascripts/fixtures/blob.rb
spec/javascripts/fixtures/blob.rb
+1
-0
spec/javascripts/fixtures/commit.rb
spec/javascripts/fixtures/commit.rb
+1
-0
spec/javascripts/fixtures/deploy_keys.rb
spec/javascripts/fixtures/deploy_keys.rb
+1
-1
spec/javascripts/fixtures/groups.rb
spec/javascripts/fixtures/groups.rb
+1
-1
spec/javascripts/fixtures/issues.rb
spec/javascripts/fixtures/issues.rb
+1
-1
spec/javascripts/fixtures/merge_requests.rb
spec/javascripts/fixtures/merge_requests.rb
+5
-2
spec/javascripts/fixtures/projects.rb
spec/javascripts/fixtures/projects.rb
+8
-4
spec/javascripts/fixtures/snippet.rb
spec/javascripts/fixtures/snippet.rb
+3
-1
spec/javascripts/fixtures/u2f.rb
spec/javascripts/fixtures/u2f.rb
+2
-1
No files found.
spec/javascripts/fixtures/blob.rb
View file @
16c2a35b
...
...
@@ -15,6 +15,7 @@ describe Projects::BlobController, '(JavaScript fixtures)', type: :controller do
before
do
sign_in
(
admin
)
allow
(
SecureRandom
).
to
receive
(
:hex
).
and_return
(
'securerandomhex:thereisnospoon'
)
end
after
do
...
...
spec/javascripts/fixtures/commit.rb
View file @
16c2a35b
...
...
@@ -16,6 +16,7 @@ describe Projects::CommitController, '(JavaScript fixtures)', type: :controller
before
do
project
.
add_maintainer
(
user
)
sign_in
(
user
)
allow
(
SecureRandom
).
to
receive
(
:hex
).
and_return
(
'securerandomhex:thereisnospoon'
)
end
it
'commit/show.html.raw'
do
|
example
|
...
...
spec/javascripts/fixtures/deploy_keys.rb
View file @
16c2a35b
...
...
@@ -25,7 +25,7 @@ describe Projects::DeployKeysController, '(JavaScript fixtures)', type: :control
render_views
it
'deploy_keys/keys.json'
do
|
example
|
create
(
:
deploy_key
,
public:
true
)
create
(
:
rsa_deploy_key_2048
,
public:
true
)
project_key
=
create
(
:deploy_key
,
key:
'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCdMHEHyhRjbhEZVddFn6lTWdgEy5Q6Bz4nwGB76xWZI5YT/1WJOMEW+sL5zYd31kk7sd3FJ5L9ft8zWMWrr/iWXQikC2cqZK24H1xy+ZUmrRuJD4qGAaIVoyyzBL+avL+lF8J5lg6YSw8gwJY/lX64/vnJHUlWw2n5BF8IFOWhiw== dummy@gitlab.com'
)
internal_key
=
create
(
:deploy_key
,
key:
'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDNd/UJWhPrpb+b/G5oL109y57yKuCxE+WUGJGYaj7WQKsYRJmLYh1mgjrl+KVyfsWpq4ylOxIfFSnN9xBBFN8mlb0Fma5DC7YsSsibJr3MZ19ZNBprwNcdogET7aW9I0In7Wu5f2KqI6e5W/spJHCy4JVxzVMUvk6Myab0LnJ2iQ== dummy@gitlab.com'
)
create
(
:deploy_keys_project
,
project:
project
,
deploy_key:
project_key
)
...
...
spec/javascripts/fixtures/groups.rb
View file @
16c2a35b
...
...
@@ -4,7 +4,7 @@ describe 'Groups (JavaScript fixtures)', type: :controller do
include
JavaScriptFixturesHelpers
let
(
:admin
)
{
create
(
:admin
)
}
let
(
:group
)
{
create
(
:group
,
name:
'frontend-fixtures-group'
)}
let
(
:group
)
{
create
(
:group
,
name:
'frontend-fixtures-group'
,
runners_token:
'runnerstoken:intabulasreferre'
)}
render_views
...
...
spec/javascripts/fixtures/issues.rb
View file @
16c2a35b
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
Projects
::
IssuesController
,
'(JavaScript fixtures)'
,
type: :controller
do
include
JavaScriptFixturesHelpers
let
(
:admin
)
{
create
(
:admin
)
}
let
(
:admin
)
{
create
(
:admin
,
feed_token:
'feedtoken:coldfeed'
)
}
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project_empty_repo
,
namespace:
namespace
,
path:
'issues-project'
)
}
...
...
spec/javascripts/fixtures/merge_requests.rb
View file @
16c2a35b
...
...
@@ -35,6 +35,7 @@ describe Projects::MergeRequestsController, '(JavaScript fixtures)', type: :cont
before
do
sign_in
(
admin
)
allow
(
Discussion
).
to
receive
(
:build_discussion_id
).
and_return
([
'discussionid:ceterumcenseo'
])
end
after
do
...
...
@@ -54,8 +55,10 @@ describe Projects::MergeRequestsController, '(JavaScript fixtures)', type: :cont
end
it
'merge_requests/merged_merge_request.html.raw'
do
|
example
|
allow_any_instance_of
(
MergeRequest
).
to
receive
(
:source_branch_exists?
).
and_return
(
true
)
allow_any_instance_of
(
MergeRequest
).
to
receive
(
:can_remove_source_branch?
).
and_return
(
true
)
expect_next_instance_of
(
MergeRequest
)
do
|
merge_request
|
allow
(
merge_request
).
to
receive
(
:source_branch_exists?
).
and_return
(
true
)
allow
(
merge_request
).
to
receive
(
:can_remove_source_branch?
).
and_return
(
true
)
end
render_merge_request
(
example
.
description
,
merged_merge_request
)
end
...
...
spec/javascripts/fixtures/projects.rb
View file @
16c2a35b
...
...
@@ -3,13 +3,13 @@ require 'spec_helper'
describe
'Projects (JavaScript fixtures)'
,
type: :controller
do
include
JavaScriptFixturesHelpers
runners_token
=
'runnerstoken:intabulasreferre'
let
(
:admin
)
{
create
(
:admin
)
}
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project
,
namespace:
namespace
,
path:
'builds-project'
)
}
let
(
:project
)
{
create
(
:project
,
namespace:
namespace
,
path:
'builds-project'
,
runners_token:
runners_token
)
}
let
(
:project_with_repo
)
{
create
(
:project
,
:repository
,
description:
'Code and stuff'
)
}
let
(
:project_variable_populated
)
{
create
(
:project
,
namespace:
namespace
,
path:
'builds-project2'
)
}
let!
(
:variable1
)
{
create
(
:ci_variable
,
project:
project_variable_populated
)
}
let!
(
:variable2
)
{
create
(
:ci_variable
,
project:
project_variable_populated
)
}
let
(
:project_variable_populated
)
{
create
(
:project
,
namespace:
namespace
,
path:
'builds-project2'
,
runners_token:
runners_token
)
}
render_views
...
...
@@ -23,6 +23,7 @@ describe 'Projects (JavaScript fixtures)', type: :controller do
# EE specific end
project
.
add_maintainer
(
admin
)
sign_in
(
admin
)
allow
(
SecureRandom
).
to
receive
(
:hex
).
and_return
(
'securerandomhex:thereisnospoon'
)
end
after
do
...
...
@@ -73,6 +74,9 @@ describe 'Projects (JavaScript fixtures)', type: :controller do
end
it
'projects/ci_cd_settings_with_variables.html.raw'
do
|
example
|
create
(
:ci_variable
,
project:
project_variable_populated
)
create
(
:ci_variable
,
project:
project_variable_populated
)
get
:show
,
params:
{
namespace_id:
project_variable_populated
.
namespace
.
to_param
,
project_id:
project_variable_populated
...
...
spec/javascripts/fixtures/snippet.rb
View file @
16c2a35b
...
...
@@ -7,7 +7,6 @@ describe SnippetsController, '(JavaScript fixtures)', type: :controller do
let
(
:namespace
)
{
create
(
:namespace
,
name:
'frontend-fixtures'
)}
let
(
:project
)
{
create
(
:project
,
:repository
,
namespace:
namespace
,
path:
'branches-project'
)
}
let
(
:snippet
)
{
create
(
:personal_snippet
,
title:
'snippet.md'
,
content:
'# snippet'
,
file_name:
'snippet.md'
,
author:
admin
)
}
let!
(
:snippet_note
)
{
create
(
:discussion_note_on_snippet
,
noteable:
snippet
,
project:
project
,
author:
admin
,
note:
'- [ ] Task List Item'
)
}
render_views
...
...
@@ -17,6 +16,7 @@ describe SnippetsController, '(JavaScript fixtures)', type: :controller do
before
do
sign_in
(
admin
)
allow
(
Discussion
).
to
receive
(
:build_discussion_id
).
and_return
([
'discussionid:ceterumcenseo'
])
end
after
do
...
...
@@ -24,6 +24,8 @@ describe SnippetsController, '(JavaScript fixtures)', type: :controller do
end
it
'snippets/show.html.raw'
do
|
example
|
create
(
:discussion_note_on_snippet
,
noteable:
snippet
,
project:
project
,
author:
admin
,
note:
'- [ ] Task List Item'
)
get
(
:show
,
params:
{
id:
snippet
.
to_param
})
expect
(
response
).
to
be_success
...
...
spec/javascripts/fixtures/u2f.rb
View file @
16c2a35b
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
context
'U2F'
do
include
JavaScriptFixturesHelpers
let
(
:user
)
{
create
(
:user
,
:two_factor_via_u2f
)
}
let
(
:user
)
{
create
(
:user
,
:two_factor_via_u2f
,
otp_secret:
'otpsecret:coolkids'
)
}
before
(
:all
)
do
clean_frontend_fixtures
(
'u2f/'
)
...
...
@@ -33,6 +33,7 @@ context 'U2F' do
before
do
sign_in
(
user
)
allow_any_instance_of
(
Profiles
::
TwoFactorAuthsController
).
to
receive
(
:build_qr_code
).
and_return
(
'qrcode:blackandwhitesquares'
)
end
it
'u2f/register.html.raw'
do
|
example
|
...
...
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