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
36811152
Commit
36811152
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
365dd5a6
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 @
36811152
...
@@ -3996,7 +3996,7 @@ describe Project do
...
@@ -3996,7 +3996,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
}
...
@@ -4007,5 +4007,12 @@ describe Project do
...
@@ -4007,5 +4007,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