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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
1be454e7
Commit
1be454e7
authored
Feb 13, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix envs and deploys specs related to build retry
parent
b35e6249
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
spec/models/environment_spec.rb
spec/models/environment_spec.rb
+1
-1
spec/services/create_deployment_service_spec.rb
spec/services/create_deployment_service_spec.rb
+5
-1
No files found.
spec/models/environment_spec.rb
View file @
1be454e7
...
@@ -155,7 +155,7 @@ describe Environment, models: true do
...
@@ -155,7 +155,7 @@ describe Environment, models: true do
end
end
describe
'#stop_with_action!'
do
describe
'#stop_with_action!'
do
let
(
:user
)
{
create
(
:
user
)
}
let
(
:user
)
{
create
(
:
admin
)
}
subject
{
environment
.
stop_with_action!
(
user
)
}
subject
{
environment
.
stop_with_action!
(
user
)
}
...
...
spec/services/create_deployment_service_spec.rb
View file @
1be454e7
...
@@ -234,7 +234,11 @@ describe CreateDeploymentService, services: true do
...
@@ -234,7 +234,11 @@ describe CreateDeploymentService, services: true do
context
'when build is retried'
do
context
'when build is retried'
do
it_behaves_like
'does create environment and deployment'
do
it_behaves_like
'does create environment and deployment'
do
let
(
:deployable
)
{
Ci
::
Build
.
retry
(
build
)
}
before
do
project
.
team
<<
[
user
,
:developer
]
end
let
(
:deployable
)
{
Ci
::
Build
.
retry
(
build
,
user
)
}
subject
{
deployable
.
success
}
subject
{
deployable
.
success
}
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