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
82d66ac9
Commit
82d66ac9
authored
Apr 23, 2018
by
Mayra Cabrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increases specs examples regarding projects & deploy tokens
parent
cdac54e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
spec/models/project_spec.rb
spec/models/project_spec.rb
+8
-1
No files found.
spec/models/project_spec.rb
View file @
82d66ac9
...
@@ -3606,7 +3606,7 @@ describe Project do
...
@@ -3606,7 +3606,7 @@ describe Project do
it
{
is_expected
.
to
be_nil
}
it
{
is_expected
.
to
be_nil
}
end
end
context
'when there is a gitlab deploy token associated but it
ha
s expired'
do
context
'when there is a gitlab deploy token associated but it
i
s expired'
do
let!
(
:deploy_token
)
{
create
(
:deploy_token
,
:gitlab_deploy_token
,
:expired
,
projects:
[
project
])
}
let!
(
:deploy_token
)
{
create
(
:deploy_token
,
:gitlab_deploy_token
,
:expired
,
projects:
[
project
])
}
it
{
is_expected
.
to
be_nil
}
it
{
is_expected
.
to
be_nil
}
...
@@ -3617,5 +3617,12 @@ describe Project do
...
@@ -3617,5 +3617,12 @@ describe Project do
it
{
is_expected
.
to
be_nil
}
it
{
is_expected
.
to
be_nil
}
end
end
context
'when there is a deploy token associated to a different project'
do
let
(
:project_2
)
{
create
(
:project
)
}
let!
(
:deploy_token
)
{
create
(
:deploy_token
,
projects:
[
project_2
])
}
it
{
is_expected
.
to
be_nil
}
end
end
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