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
c0e01aab
Commit
c0e01aab
authored
Jan 10, 2020
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change set to let_it_be in ee/spec/presenters
Contributes to
https://gitlab.com/gitlab-org/gitlab/issues/27922
parent
15cbdd3e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
ee/spec/presenters/approval_rule_presenter_spec.rb
ee/spec/presenters/approval_rule_presenter_spec.rb
+6
-6
ee/spec/presenters/ci/pipeline_presenter_spec.rb
ee/spec/presenters/ci/pipeline_presenter_spec.rb
+2
-2
ee/spec/presenters/group_clusterable_presenter_spec.rb
ee/spec/presenters/group_clusterable_presenter_spec.rb
+1
-1
ee/spec/presenters/projects/prometheus/alert_presenter_spec.rb
...ec/presenters/projects/prometheus/alert_presenter_spec.rb
+1
-1
No files found.
ee/spec/presenters/approval_rule_presenter_spec.rb
View file @
c0e01aab
...
...
@@ -3,17 +3,17 @@
require
'spec_helper'
describe
ApprovalRulePresenter
do
set
(
:user
)
{
create
(
:user
)
}
set
(
:public_group
)
{
create
(
:group
)
}
set
(
:private_group
)
{
create
(
:group
,
:private
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:public_group
)
{
create
(
:group
)
}
let_it_be
(
:private_group
)
{
create
(
:group
,
:private
)
}
let
(
:groups
)
{
[
public_group
,
private_group
]
}
subject
(
:presenter
)
{
described_class
.
new
(
rule
,
current_user:
user
)
}
describe
'#approvers'
do
set
(
:private_member
)
{
create
(
:group_member
,
group:
private_group
)
}
set
(
:public_member
)
{
create
(
:group_member
,
group:
public_group
)
}
set
(
:rule
)
{
create
(
:approval_merge_request_rule
,
groups:
[
public_group
,
private_group
])
}
let_it_be
(
:private_member
)
{
create
(
:group_member
,
group:
private_group
)
}
let_it_be
(
:public_member
)
{
create
(
:group_member
,
group:
public_group
)
}
let_it_be
(
:rule
)
{
create
(
:approval_merge_request_rule
,
groups:
[
public_group
,
private_group
])
}
subject
{
presenter
.
approvers
}
...
...
ee/spec/presenters/ci/pipeline_presenter_spec.rb
View file @
c0e01aab
...
...
@@ -3,8 +3,8 @@
require
'spec_helper'
describe
Ci
::
PipelinePresenter
do
set
(
:project
)
{
create
(
:project
)
}
set
(
:pipelin
e
)
{
create
(
:ci_pipeline
,
project:
project
)
}
let_it_be
(
:project
,
reload:
true
)
{
create
(
:project
)
}
let_it_be
(
:pipeline
,
reload:
tru
e
)
{
create
(
:ci_pipeline
,
project:
project
)
}
subject
(
:presenter
)
do
described_class
.
new
(
pipeline
)
...
...
ee/spec/presenters/group_clusterable_presenter_spec.rb
View file @
c0e01aab
...
...
@@ -5,7 +5,7 @@ require 'spec_helper'
describe
GroupClusterablePresenter
do
include
Gitlab
::
Routing
.
url_helpers
set
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:presenter
)
{
described_class
.
new
(
group
)
}
let
(
:cluster
)
{
create
(
:cluster
,
:provided_by_gcp
,
:group
)
}
...
...
ee/spec/presenters/projects/prometheus/alert_presenter_spec.rb
View file @
c0e01aab
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
describe
Projects
::
Prometheus
::
AlertPresenter
do
set
(
:project
)
{
create
(
:project
)
}
let_it_be
(
:project
)
{
create
(
:project
)
}
let
(
:presenter
)
{
described_class
.
new
(
alert
)
}
let
(
:payload
)
{
{}
}
...
...
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