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
27bc2178
Commit
27bc2178
authored
Aug 01, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs
parent
5af456a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
spec/models/geo/deleted_project_spec.rb
spec/models/geo/deleted_project_spec.rb
+1
-1
spec/models/repository_spec.rb
spec/models/repository_spec.rb
+3
-3
spec/workers/geo_repository_destroy_worker_spec.rb
spec/workers/geo_repository_destroy_worker_spec.rb
+1
-1
No files found.
spec/models/geo/deleted_project_spec.rb
View file @
27bc2178
...
...
@@ -23,7 +23,7 @@ RSpec.describe Geo::DeletedProject, type: :model do
describe
'#repository'
do
it
'returns a valid repository'
do
expect
(
subject
.
repository
).
to
be_kind_of
(
Repository
)
expect
(
subject
.
repository
.
path_with_namespace
).
to
eq
(
'root/sample'
)
expect
(
subject
.
repository
.
full_path
).
to
eq
(
'root/sample'
)
end
end
end
spec/models/repository_spec.rb
View file @
27bc2178
...
...
@@ -1860,7 +1860,7 @@ describe Repository do
describe
'#push_remote_branches'
do
it
'push branches to the remote repo'
do
expect_any_instance_of
(
Gitlab
::
Shell
).
to
receive
(
:push_remote_branches
)
.
with
(
repository
.
storage_path
,
repository
.
path_with_namespace
,
'remote_name'
,
[
'branch'
])
.
with
(
repository
.
storage_path
,
repository
.
disk_path
,
'remote_name'
,
[
'branch'
])
repository
.
push_remote_branches
(
'remote_name'
,
[
'branch'
])
end
...
...
@@ -1869,7 +1869,7 @@ describe Repository do
describe
'#delete_remote_branches'
do
it
'delete branches to the remote repo'
do
expect_any_instance_of
(
Gitlab
::
Shell
).
to
receive
(
:delete_remote_branches
)
.
with
(
repository
.
storage_path
,
repository
.
path_with_namespace
,
'remote_name'
,
[
'branch'
])
.
with
(
repository
.
storage_path
,
repository
.
disk_path
,
'remote_name'
,
[
'branch'
])
repository
.
delete_remote_branches
(
'remote_name'
,
[
'branch'
])
end
...
...
@@ -1888,7 +1888,7 @@ describe Repository do
masterrev
=
repository
.
find_branch
(
'master'
).
dereferenced_target
.
id
expect_any_instance_of
(
Gitlab
::
Shell
).
to
receive
(
:list_remote_tags
)
.
with
(
repository
.
storage_path
,
repository
.
path_with_namespace
,
'upstream'
)
.
with
(
repository
.
storage_path
,
repository
.
disk_path
,
'upstream'
)
.
and_return
({
'v0.0.1'
=>
masterrev
})
tags
=
repository
.
remote_tags
(
'upstream'
)
...
...
spec/workers/geo_repository_destroy_worker_spec.rb
View file @
27bc2178
...
...
@@ -2,7 +2,7 @@ require 'spec_helper'
describe
GeoRepositoryDestroyWorker
do
let!
(
:project
)
{
create
:project_empty_repo
}
let!
(
:path
)
{
project
.
repository
.
path_with_namespace
}
let!
(
:path
)
{
project
.
repository
.
full_path
}
let!
(
:remove_path
)
{
path
.
sub
(
/\.git\Z/
,
"+
#{
project
.
id
}
+deleted.git"
)
}
let
(
:perform!
)
{
subject
.
perform
(
project
.
id
,
project
.
name
,
path
)
}
...
...
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