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
408457eb
Commit
408457eb
authored
Dec 07, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Sidekiq::Testing in RepositoryController spec
parent
e7d5727b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
spec/controllers/projects/settings/repository_controller_spec.rb
...ntrollers/projects/settings/repository_controller_spec.rb
+6
-4
No files found.
spec/controllers/projects/settings/repository_controller_spec.rb
View file @
408457eb
...
...
@@ -19,12 +19,14 @@ describe Projects::Settings::RepositoryController do
end
describe
'PUT cleanup'
do
before
do
allow
(
RepositoryCleanupWorker
).
to
receive
(
:perform_async
)
end
def
do_put!
object_map
=
fixture_file_upload
(
'spec/fixtures/bfg_object_map.txt'
)
Sidekiq
::
Testing
.
fake!
do
put
:cleanup
,
namespace_id:
project
.
namespace
,
project_id:
project
,
project:
{
object_map:
object_map
}
end
put
:cleanup
,
namespace_id:
project
.
namespace
,
project_id:
project
,
project:
{
object_map:
object_map
}
end
context
'feature enabled'
do
...
...
@@ -34,7 +36,7 @@ describe Projects::Settings::RepositoryController do
do_put!
expect
(
response
).
to
redirect_to
project_settings_repository_path
(
project
)
expect
(
RepositoryCleanupWorker
.
jobs
.
count
).
to
eq
(
1
)
expect
(
RepositoryCleanupWorker
).
to
have_received
(
:perform_async
).
once
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