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
d96e9073
Commit
d96e9073
authored
Apr 06, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs for build status factory and manual status
parent
6c0fc62e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
spec/lib/gitlab/ci/status/build/factory_spec.rb
spec/lib/gitlab/ci/status/build/factory_spec.rb
+16
-1
No files found.
spec/lib/gitlab/ci/status/build/factory_spec.rb
View file @
d96e9073
...
...
@@ -218,9 +218,24 @@ describe Gitlab::Ci::Status::Build::Factory do
expect
(
status
.
favicon
).
to
eq
'favicon_status_manual'
expect
(
status
.
label
).
to
eq
'manual play action'
expect
(
status
).
to
have_details
expect
(
status
).
to
have_action
expect
(
status
.
action_path
).
to
include
'play'
end
context
'when user has ability to play action'
do
before
do
build
.
project
.
add_master
(
user
)
end
it
'fabricates status that has action'
do
expect
(
status
).
to
have_action
end
end
context
'when user does not have ability to play action'
do
it
'fabricates status that has no action'
do
expect
(
status
).
not_to
have_action
end
end
end
context
'when build is an environment stop action'
do
...
...
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