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
bdc4f70e
Commit
bdc4f70e
authored
Jan 10, 2020
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace set to let_it_be in ee/spec/controllers
Contributes to
https://gitlab.com/gitlab-org/gitlab/issues/27922
parent
a2a8c590
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
59 additions
and
59 deletions
+59
-59
ee/spec/controllers/admin/geo/projects_controller_spec.rb
ee/spec/controllers/admin/geo/projects_controller_spec.rb
+1
-1
ee/spec/controllers/admin/geo/settings_controller_spec.rb
ee/spec/controllers/admin/geo/settings_controller_spec.rb
+1
-1
ee/spec/controllers/admin/geo/uploads_controller_spec.rb
ee/spec/controllers/admin/geo/uploads_controller_spec.rb
+5
-5
ee/spec/controllers/ee/groups_controller_spec.rb
ee/spec/controllers/ee/groups_controller_spec.rb
+9
-9
ee/spec/controllers/ee/projects/autocomplete_sources_controller_spec.rb
...llers/ee/projects/autocomplete_sources_controller_spec.rb
+6
-6
ee/spec/controllers/ee/root_controller_spec.rb
ee/spec/controllers/ee/root_controller_spec.rb
+2
-2
ee/spec/controllers/ee/sessions_controller_spec.rb
ee/spec/controllers/ee/sessions_controller_spec.rb
+2
-2
ee/spec/controllers/groups/clusters_controller_spec.rb
ee/spec/controllers/groups/clusters_controller_spec.rb
+1
-1
ee/spec/controllers/groups/insights_controller_spec.rb
ee/spec/controllers/groups/insights_controller_spec.rb
+5
-5
ee/spec/controllers/projects/alerting/notifications_controller_spec.rb
...ollers/projects/alerting/notifications_controller_spec.rb
+2
-2
ee/spec/controllers/projects/branches_controller_spec.rb
ee/spec/controllers/projects/branches_controller_spec.rb
+1
-1
ee/spec/controllers/projects/clusters_controller_spec.rb
ee/spec/controllers/projects/clusters_controller_spec.rb
+1
-1
ee/spec/controllers/projects/designs_controller_spec.rb
ee/spec/controllers/projects/designs_controller_spec.rb
+2
-2
ee/spec/controllers/projects/environments_controller_spec.rb
ee/spec/controllers/projects/environments_controller_spec.rb
+3
-3
ee/spec/controllers/projects/feature_flags_clients_controller_spec.rb
...rollers/projects/feature_flags_clients_controller_spec.rb
+2
-2
ee/spec/controllers/projects/feature_flags_controller_spec.rb
...pec/controllers/projects/feature_flags_controller_spec.rb
+1
-1
ee/spec/controllers/projects/logs_controller_spec.rb
ee/spec/controllers/projects/logs_controller_spec.rb
+3
-3
ee/spec/controllers/projects/mirrors_controller_spec.rb
ee/spec/controllers/projects/mirrors_controller_spec.rb
+1
-1
ee/spec/controllers/projects/prometheus/alerts_controller_spec.rb
...controllers/projects/prometheus/alerts_controller_spec.rb
+4
-4
ee/spec/controllers/projects/security/dashboard_controller_spec.rb
...ontrollers/projects/security/dashboard_controller_spec.rb
+3
-3
ee/spec/controllers/projects/settings/operations_controller_spec.rb
...ntrollers/projects/settings/operations_controller_spec.rb
+1
-1
ee/spec/controllers/projects/threat_monitoring_controller_spec.rb
...controllers/projects/threat_monitoring_controller_spec.rb
+2
-2
ee/spec/controllers/projects/tracings_controller_spec.rb
ee/spec/controllers/projects/tracings_controller_spec.rb
+1
-1
No files found.
ee/spec/controllers/admin/geo/projects_controller_spec.rb
View file @
bdc4f70e
...
@@ -5,7 +5,7 @@ require 'spec_helper'
...
@@ -5,7 +5,7 @@ require 'spec_helper'
describe
Admin
::
Geo
::
ProjectsController
,
:geo
do
describe
Admin
::
Geo
::
ProjectsController
,
:geo
do
include
EE
::
GeoHelpers
include
EE
::
GeoHelpers
set
(
:admin
)
{
create
(
:admin
)
}
let_it_be
(
:admin
)
{
create
(
:admin
)
}
let
(
:synced_registry
)
{
create
(
:geo_project_registry
,
:synced
)
}
let
(
:synced_registry
)
{
create
(
:geo_project_registry
,
:synced
)
}
before
do
before
do
...
...
ee/spec/controllers/admin/geo/settings_controller_spec.rb
View file @
bdc4f70e
...
@@ -6,7 +6,7 @@ describe Admin::Geo::SettingsController, :geo do
...
@@ -6,7 +6,7 @@ describe Admin::Geo::SettingsController, :geo do
include
EE
::
GeoHelpers
include
EE
::
GeoHelpers
include
StubENV
include
StubENV
set
(
:admin
)
{
create
(
:admin
)
}
let_it_be
(
:admin
)
{
create
(
:admin
)
}
before
do
before
do
stub_env
(
'IN_MEMORY_APPLICATION_SETTINGS'
,
'false'
)
stub_env
(
'IN_MEMORY_APPLICATION_SETTINGS'
,
'false'
)
...
...
ee/spec/controllers/admin/geo/uploads_controller_spec.rb
View file @
bdc4f70e
...
@@ -5,11 +5,11 @@ require 'spec_helper'
...
@@ -5,11 +5,11 @@ require 'spec_helper'
describe
Admin
::
Geo
::
UploadsController
,
:geo
do
describe
Admin
::
Geo
::
UploadsController
,
:geo
do
include
EE
::
GeoHelpers
include
EE
::
GeoHelpers
set
(
:admin
)
{
create
(
:admin
)
}
let_it_be
(
:admin
)
{
create
(
:admin
)
}
set
(
:secondary
)
{
create
(
:geo_node
)
}
let_it_be
(
:secondary
)
{
create
(
:geo_node
)
}
set
(
:synced_registry
)
{
create
(
:geo_upload_registry
,
:with_file
,
:attachment
,
success:
true
)
}
let_it_be
(
:synced_registry
)
{
create
(
:geo_upload_registry
,
:with_file
,
:attachment
,
success:
true
)
}
set
(
:failed_registry
)
{
create
(
:geo_upload_registry
,
:failed
)
}
let_it_be
(
:failed_registry
)
{
create
(
:geo_upload_registry
,
:failed
)
}
set
(
:never_registry
)
{
create
(
:geo_upload_registry
,
:failed
,
retry_count:
nil
)
}
let_it_be
(
:never_registry
)
{
create
(
:geo_upload_registry
,
:failed
,
retry_count:
nil
)
}
def
css_id
(
registry
)
def
css_id
(
registry
)
"#upload-
#{
registry
.
id
}
-header"
"#upload-
#{
registry
.
id
}
-header"
...
...
ee/spec/controllers/ee/groups_controller_spec.rb
View file @
bdc4f70e
...
@@ -5,19 +5,19 @@ require 'spec_helper'
...
@@ -5,19 +5,19 @@ require 'spec_helper'
describe
GroupsController
do
describe
GroupsController
do
include
ExternalAuthorizationServiceHelpers
include
ExternalAuthorizationServiceHelpers
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
set
(
:group
)
{
create
(
:group
,
:public
)
}
let_it_be
(
:group
)
{
create
(
:group
,
:public
)
}
set
(
:project
)
{
create
(
:project
,
:public
,
namespace:
group
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:public
,
namespace:
group
)
}
set
(
:subgroup
)
{
create
(
:group
,
:private
,
parent:
group
)
}
let_it_be
(
:subgroup
)
{
create
(
:group
,
:private
,
parent:
group
)
}
set
(
:subgroup2
)
{
create
(
:group
,
:private
,
parent:
subgroup
)
}
let_it_be
(
:subgroup2
)
{
create
(
:group
,
:private
,
parent:
subgroup
)
}
describe
'GET #activity'
do
describe
'GET #activity'
do
render_views
render_views
set
(
:event1
)
{
create
(
:event
,
project:
project
)
}
let_it_be
(
:event1
)
{
create
(
:event
,
project:
project
)
}
set
(
:event2
)
{
create
(
:event
,
project:
nil
,
group:
group
)
}
let_it_be
(
:event2
)
{
create
(
:event
,
project:
nil
,
group:
group
)
}
set
(
:event3
)
{
create
(
:event
,
project:
nil
,
group:
subgroup
)
}
let_it_be
(
:event3
)
{
create
(
:event
,
project:
nil
,
group:
subgroup
)
}
set
(
:event4
)
{
create
(
:event
,
project:
nil
,
group:
subgroup2
)
}
let_it_be
(
:event4
)
{
create
(
:event
,
project:
nil
,
group:
subgroup2
)
}
context
'when authorized'
do
context
'when authorized'
do
before
do
before
do
...
...
ee/spec/controllers/ee/projects/autocomplete_sources_controller_spec.rb
View file @
bdc4f70e
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
require
'spec_helper'
require
'spec_helper'
describe
Projects
::
AutocompleteSourcesController
do
describe
Projects
::
AutocompleteSourcesController
do
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
set
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:group
)
{
create
(
:group
)
}
set
(
:group2
)
{
create
(
:group
)
}
let_it_be
(
:group2
)
{
create
(
:group
)
}
set
(
:project
)
{
create
(
:project
,
:public
,
group:
group
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:public
,
group:
group
)
}
set
(
:epic
)
{
create
(
:epic
,
group:
group
)
}
let_it_be
(
:epic
)
{
create
(
:epic
,
group:
group
)
}
set
(
:epic2
)
{
create
(
:epic
,
group:
group2
)
}
let_it_be
(
:epic2
)
{
create
(
:epic
,
group:
group2
)
}
before
do
before
do
sign_in
(
user
)
sign_in
(
user
)
...
...
ee/spec/controllers/ee/root_controller_spec.rb
View file @
bdc4f70e
...
@@ -8,7 +8,7 @@ describe RootController do
...
@@ -8,7 +8,7 @@ describe RootController do
describe
'GET #index'
do
describe
'GET #index'
do
context
'when user is not logged in'
do
context
'when user is not logged in'
do
context
'on a Geo primary node'
do
context
'on a Geo primary node'
do
set
(
:primary_node
)
{
create
(
:geo_node
,
:primary
)
}
let_it_be
(
:primary_node
)
{
create
(
:geo_node
,
:primary
)
}
before
do
before
do
stub_current_geo_node
(
primary_node
)
stub_current_geo_node
(
primary_node
)
...
@@ -34,7 +34,7 @@ describe RootController do
...
@@ -34,7 +34,7 @@ describe RootController do
end
end
context
'on a Geo secondary node'
do
context
'on a Geo secondary node'
do
set
(
:secondary_node
)
{
create
(
:geo_node
)
}
let_it_be
(
:secondary_node
)
{
create
(
:geo_node
)
}
before
do
before
do
stub_current_geo_node
(
secondary_node
)
stub_current_geo_node
(
secondary_node
)
...
...
ee/spec/controllers/ee/sessions_controller_spec.rb
View file @
bdc4f70e
...
@@ -12,8 +12,8 @@ describe SessionsController, :geo do
...
@@ -12,8 +12,8 @@ describe SessionsController, :geo do
describe
'#new'
do
describe
'#new'
do
context
'on a Geo secondary node'
do
context
'on a Geo secondary node'
do
set
(
:primary_node
)
{
create
(
:geo_node
,
:primary
)
}
let_it_be
(
:primary_node
)
{
create
(
:geo_node
,
:primary
)
}
set
(
:secondary_node
)
{
create
(
:geo_node
)
}
let_it_be
(
:secondary_node
)
{
create
(
:geo_node
)
}
before
do
before
do
stub_current_geo_node
(
secondary_node
)
stub_current_geo_node
(
secondary_node
)
...
...
ee/spec/controllers/groups/clusters_controller_spec.rb
View file @
bdc4f70e
...
@@ -5,7 +5,7 @@ require 'spec_helper'
...
@@ -5,7 +5,7 @@ require 'spec_helper'
describe
Groups
::
ClustersController
do
describe
Groups
::
ClustersController
do
include
AccessMatchersForController
include
AccessMatchersForController
set
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:group
)
{
create
(
:group
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
...
...
ee/spec/controllers/groups/insights_controller_spec.rb
View file @
bdc4f70e
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
require
'spec_helper'
require
'spec_helper'
describe
Groups
::
InsightsController
do
describe
Groups
::
InsightsController
do
set
(
:parent_group
)
{
create
(
:group
,
:private
)
}
let_it_be
(
:parent_group
)
{
create
(
:group
,
:private
)
}
set
(
:nested_group
)
{
create
(
:group
,
:private
,
parent:
parent_group
)
}
let_it_be
(
:nested_group
)
{
create
(
:group
,
:private
,
parent:
parent_group
)
}
set
(
:project
)
{
create
(
:project
,
:private
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:private
)
}
set
(
:insight
)
{
create
(
:insight
,
group:
parent_group
,
project:
project
)
}
let_it_be
(
:insight
)
{
create
(
:insight
,
group:
parent_group
,
project:
project
)
}
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:query_params
)
{
{
type:
'bar'
,
query:
{
issuable_type:
'issue'
,
collection_labels:
[
'bug'
]
},
projects:
projects_params
}
}
let
(
:query_params
)
{
{
type:
'bar'
,
query:
{
issuable_type:
'issue'
,
collection_labels:
[
'bug'
]
},
projects:
projects_params
}
}
let
(
:projects_params
)
{
{
only:
[
project
.
id
,
project
.
full_path
]
}
}
let
(
:projects_params
)
{
{
only:
[
project
.
id
,
project
.
full_path
]
}
}
let
(
:params
)
{
{
trailing_slash:
true
}
}
let
(
:params
)
{
{
trailing_slash:
true
}
}
...
...
ee/spec/controllers/projects/alerting/notifications_controller_spec.rb
View file @
bdc4f70e
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
require
'spec_helper'
require
'spec_helper'
describe
Projects
::
Alerting
::
NotificationsController
do
describe
Projects
::
Alerting
::
NotificationsController
do
set
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
set
(
:environment
)
{
create
(
:environment
,
project:
project
)
}
let_it_be
(
:environment
)
{
create
(
:environment
,
project:
project
)
}
describe
'POST #create'
do
describe
'POST #create'
do
let
(
:service_response
)
{
ServiceResponse
.
success
}
let
(
:service_response
)
{
ServiceResponse
.
success
}
...
...
ee/spec/controllers/projects/branches_controller_spec.rb
View file @
bdc4f70e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Projects
::
BranchesController
do
describe
Projects
::
BranchesController
do
set
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:user
)
{
project
.
owner
}
let
(
:user
)
{
project
.
owner
}
before
do
before
do
...
...
ee/spec/controllers/projects/clusters_controller_spec.rb
View file @
bdc4f70e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Projects
::
ClustersController
do
describe
Projects
::
ClustersController
do
set
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
it_behaves_like
'cluster metrics'
do
it_behaves_like
'cluster metrics'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
...
...
ee/spec/controllers/projects/designs_controller_spec.rb
View file @
bdc4f70e
...
@@ -5,8 +5,8 @@ require 'spec_helper'
...
@@ -5,8 +5,8 @@ require 'spec_helper'
describe
Projects
::
DesignsController
do
describe
Projects
::
DesignsController
do
include
DesignManagementTestHelpers
include
DesignManagementTestHelpers
set
(
:project
)
{
create
(
:project
,
:public
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:public
)
}
set
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let_it_be
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:file
)
{
fixture_file_upload
(
'spec/fixtures/dk.png'
,
'`/png'
)
}
let
(
:file
)
{
fixture_file_upload
(
'spec/fixtures/dk.png'
,
'`/png'
)
}
let
(
:lfs_pointer
)
{
Gitlab
::
Git
::
LfsPointerFile
.
new
(
file
.
read
)
}
let
(
:lfs_pointer
)
{
Gitlab
::
Git
::
LfsPointerFile
.
new
(
file
.
read
)
}
let
(
:design
)
{
create
(
:design
,
:with_lfs_file
,
file:
lfs_pointer
.
pointer
,
issue:
issue
)
}
let
(
:design
)
{
create
(
:design
,
:with_lfs_file
,
file:
lfs_pointer
.
pointer
,
issue:
issue
)
}
...
...
ee/spec/controllers/projects/environments_controller_spec.rb
View file @
bdc4f70e
...
@@ -5,10 +5,10 @@ require 'spec_helper'
...
@@ -5,10 +5,10 @@ require 'spec_helper'
describe
Projects
::
EnvironmentsController
do
describe
Projects
::
EnvironmentsController
do
include
KubernetesHelpers
include
KubernetesHelpers
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
set
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
set
(
:environment
)
do
let_it_be
(
:environment
)
do
create
(
:environment
,
name:
'production'
,
project:
project
)
create
(
:environment
,
name:
'production'
,
project:
project
)
end
end
...
...
ee/spec/controllers/projects/feature_flags_clients_controller_spec.rb
View file @
bdc4f70e
...
@@ -5,8 +5,8 @@ require 'spec_helper'
...
@@ -5,8 +5,8 @@ require 'spec_helper'
describe
Projects
::
FeatureFlagsClientsController
do
describe
Projects
::
FeatureFlagsClientsController
do
include
Gitlab
::
Routing
include
Gitlab
::
Routing
set
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
describe
'POST reset_token.json'
do
describe
'POST reset_token.json'
do
subject
(
:reset_token
)
do
subject
(
:reset_token
)
do
...
...
ee/spec/controllers/projects/feature_flags_controller_spec.rb
View file @
bdc4f70e
...
@@ -6,7 +6,7 @@ describe Projects::FeatureFlagsController do
...
@@ -6,7 +6,7 @@ describe Projects::FeatureFlagsController do
include
Gitlab
::
Routing
include
Gitlab
::
Routing
include
FeatureFlagHelpers
include
FeatureFlagHelpers
set
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
let
(
:user
)
{
developer
}
let
(
:user
)
{
developer
}
let
(
:developer
)
{
create
(
:user
)
}
let
(
:developer
)
{
create
(
:user
)
}
let
(
:reporter
)
{
create
(
:user
)
}
let
(
:reporter
)
{
create
(
:user
)
}
...
...
ee/spec/controllers/projects/logs_controller_spec.rb
View file @
bdc4f70e
...
@@ -5,10 +5,10 @@ require 'spec_helper'
...
@@ -5,10 +5,10 @@ require 'spec_helper'
describe
Projects
::
LogsController
do
describe
Projects
::
LogsController
do
include
KubernetesHelpers
include
KubernetesHelpers
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
set
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
set
(
:environment
)
do
let_it_be
(
:environment
)
do
create
(
:environment
,
name:
'production'
,
project:
project
)
create
(
:environment
,
name:
'production'
,
project:
project
)
end
end
...
...
ee/spec/controllers/projects/mirrors_controller_spec.rb
View file @
bdc4f70e
...
@@ -6,7 +6,7 @@ describe Projects::MirrorsController do
...
@@ -6,7 +6,7 @@ describe Projects::MirrorsController do
include
ReactiveCachingHelpers
include
ReactiveCachingHelpers
describe
'setting up a remote mirror'
do
describe
'setting up a remote mirror'
do
set
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:url
)
{
'http://foo.com'
}
let
(
:url
)
{
'http://foo.com'
}
context
'when the current project is a mirror'
do
context
'when the current project is a mirror'
do
...
...
ee/spec/controllers/projects/prometheus/alerts_controller_spec.rb
View file @
bdc4f70e
...
@@ -3,10 +3,10 @@
...
@@ -3,10 +3,10 @@
require
'spec_helper'
require
'spec_helper'
describe
Projects
::
Prometheus
::
AlertsController
do
describe
Projects
::
Prometheus
::
AlertsController
do
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
set
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
set
(
:environment
)
{
create
(
:environment
,
project:
project
)
}
let_it_be
(
:environment
)
{
create
(
:environment
,
project:
project
)
}
set
(
:metric
)
{
create
(
:prometheus_metric
,
project:
project
)
}
let_it_be
(
:metric
)
{
create
(
:prometheus_metric
,
project:
project
)
}
before
do
before
do
stub_licensed_features
(
prometheus_alerts:
true
)
stub_licensed_features
(
prometheus_alerts:
true
)
...
...
ee/spec/controllers/projects/security/dashboard_controller_spec.rb
View file @
bdc4f70e
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
require
'spec_helper'
require
'spec_helper'
describe
Projects
::
Security
::
DashboardController
do
describe
Projects
::
Security
::
DashboardController
do
set
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:group
)
{
create
(
:group
)
}
set
(
:project
)
{
create
(
:project
,
:repository
,
:public
,
namespace:
group
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
:public
,
namespace:
group
)
}
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
it_behaves_like
SecurityDashboardsPermissions
do
it_behaves_like
SecurityDashboardsPermissions
do
let
(
:vulnerable
)
{
project
}
let
(
:vulnerable
)
{
project
}
...
...
ee/spec/controllers/projects/settings/operations_controller_spec.rb
View file @
bdc4f70e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Projects
::
Settings
::
OperationsController
do
describe
Projects
::
Settings
::
OperationsController
do
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
before
do
before
do
sign_in
(
user
)
sign_in
(
user
)
...
...
ee/spec/controllers/projects/threat_monitoring_controller_spec.rb
View file @
bdc4f70e
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
require
'spec_helper'
require
'spec_helper'
describe
Projects
::
ThreatMonitoringController
do
describe
Projects
::
ThreatMonitoringController
do
set
(
:project
)
{
create
(
:project
,
:repository
,
:private
)
}
let_it_be
(
:project
)
{
create
(
:project
,
:repository
,
:private
)
}
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
subject
{
get
:show
,
params:
{
namespace_id:
project
.
namespace
,
project_id:
project
}
}
subject
{
get
:show
,
params:
{
namespace_id:
project
.
namespace
,
project_id:
project
}
}
...
...
ee/spec/controllers/projects/tracings_controller_spec.rb
View file @
bdc4f70e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
require
'spec_helper'
require
'spec_helper'
describe
Projects
::
TracingsController
do
describe
Projects
::
TracingsController
do
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
describe
'GET show'
do
describe
'GET show'
do
shared_examples
'user with read access'
do
|
visibility_level
|
shared_examples
'user with read access'
do
|
visibility_level
|
...
...
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