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
eacf54fe
Commit
eacf54fe
authored
Dec 05, 2019
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement LegacyStagePresenter specs
parent
6301bd24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
spec/presenters/ci/legacy_stage_presenter_spec.rb
spec/presenters/ci/legacy_stage_presenter_spec.rb
+21
-0
No files found.
spec/presenters/ci/legacy_stage_presenter_spec.rb
0 → 100644
View file @
eacf54fe
# frozen_string_literal: true
require
'spec_helper'
describe
Ci
::
LegacyStagePresenter
do
let
(
:legacy_stage
)
{
create
(
:ci_stage
)
}
describe
'#preloaded_statuses'
do
subject
(
:preloaded_statuses
)
{
described_class
.
new
(
legacy_stage
).
preloaded_statuses
}
let!
(
:build
)
{
create
(
:ci_build
,
:tags
,
pipeline:
legacy_stage
.
pipeline
,
stage:
legacy_stage
.
name
)
}
before
do
create
(
:generic_commit_status
,
pipeline:
legacy_stage
.
pipeline
,
stage:
legacy_stage
.
name
)
end
it
'preloads build tags'
do
expect
(
preloaded_statuses
.
first
.
association
(
:tags
)).
to
be_loaded
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