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
41ba14e8
Commit
41ba14e8
authored
Aug 01, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove rspec-mock warning in a Geo-related project spec
parent
5a9b6b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
spec/models/ee/project_spec.rb
spec/models/ee/project_spec.rb
+1
-9
No files found.
spec/models/ee/project_spec.rb
View file @
41ba14e8
...
...
@@ -752,15 +752,7 @@ describe Project do
it
'logs the Geo::RepositoryRenamedEvent'
do
stub_container_registry_config
(
enabled:
false
)
allow
(
gitlab_shell
).
to
receive
(
:mv_repository
)
.
ordered
.
with
(
project
.
repository_storage_path
,
"
#{
project
.
namespace
.
full_path
}
/foo"
,
"
#{
project
.
full_path
}
"
)
.
and_return
(
true
)
allow
(
gitlab_shell
).
to
receive
(
:mv_repository
)
.
ordered
.
with
(
project
.
repository_storage_path
,
"
#{
project
.
namespace
.
full_path
}
/foo.wiki"
,
"
#{
project
.
full_path
}
.wiki"
)
.
and_return
(
true
)
allow
(
gitlab_shell
).
to
receive
(
:mv_repository
).
twice
.
and_return
(
true
)
expect
(
Geo
::
RepositoryRenamedEventStore
).
to
receive
(
:new
)
.
with
(
instance_of
(
described_class
),
old_path:
'foo'
,
old_path_with_namespace:
"
#{
project
.
namespace
.
full_path
}
/foo"
)
...
...
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