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
f250fb16
Commit
f250fb16
authored
Apr 30, 2018
by
Tiago Botelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makes namespaceless project destroy worker spec not depend on a specific migration version
parent
507e3fbc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
spec/workers/namespaceless_project_destroy_worker_spec.rb
spec/workers/namespaceless_project_destroy_worker_spec.rb
+6
-9
No files found.
spec/workers/namespaceless_project_destroy_worker_spec.rb
View file @
f250fb16
...
...
@@ -22,13 +22,11 @@ describe NamespacelessProjectDestroyWorker do
end
end
# Only possible with schema 20180222043024 and lower.
# Project#namespace_id has not null constraint since then
context
'project has no namespace'
,
:migration
,
schema:
20180222043024
do
let!
(
:project
)
do
project
=
build
(
:project
,
namespace_id:
nil
)
project
.
save
(
validate:
false
)
project
context
'project has no namespace'
do
let!
(
:project
)
{
create
(
:project
)
}
before
do
allow_any_instance_of
(
Project
).
to
receive
(
:namespace
).
and_return
(
nil
)
end
context
'project not a fork of another project'
do
...
...
@@ -61,8 +59,7 @@ describe NamespacelessProjectDestroyWorker do
let!
(
:parent_project
)
{
create
(
:project
)
}
let
(
:project
)
do
namespaceless_project
=
fork_project
(
parent_project
)
namespaceless_project
.
namespace_id
=
nil
namespaceless_project
.
save
(
validate:
false
)
namespaceless_project
.
save
namespaceless_project
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