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
Léo-Paul Géneau
gitlab-ce
Commits
47907a41
Commit
47907a41
authored
Apr 05, 2017
by
Kim "BKC" Carlbäcker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
ae7ec004
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/models/environment_spec.rb
spec/models/environment_spec.rb
+2
-2
No files found.
spec/models/environment_spec.rb
View file @
47907a41
...
...
@@ -100,7 +100,7 @@ describe Environment, models: true do
let
(
:head_commit
)
{
project
.
commit
}
let
(
:commit
)
{
project
.
commit
.
parent
}
context
'Gitaly find_ref_name feature disable
s
'
do
context
'Gitaly find_ref_name feature disable
d
'
do
it
'returns deployment id for the environment'
do
expect
(
environment
.
first_deployment_for
(
commit
)).
to
eq
deployment1
end
...
...
@@ -115,7 +115,7 @@ describe Environment, models: true do
allow
(
Gitlab
::
GitalyClient
).
to
receive
(
:feature_enabled?
).
with
(
:find_ref_name
).
and_return
(
true
)
end
it
'c
hecks that GitalyClient is called
'
do
it
'c
alls GitalyClient
'
do
expect
(
Gitlab
::
GitalyClient
::
Ref
).
to
receive
(
:find_ref_name
).
with
(
project
.
repository
.
raw_repository
,
commit
.
id
,
environment
.
ref_path
)
environment
.
first_deployment_for
(
commit
)
...
...
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