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
1ec357f0
Commit
1ec357f0
authored
Jan 18, 2020
by
Qingyu Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update rspec per more review comment
parent
683cffed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
spec/lib/gitlab/import_export/import_failure_service_spec.rb
spec/lib/gitlab/import_export/import_failure_service_spec.rb
+4
-10
No files found.
spec/lib/gitlab/import_export/import_failure_service_spec.rb
View file @
1ec357f0
...
...
@@ -97,16 +97,10 @@ describe Gitlab::ImportExport::ImportFailureService do
context
'when exception is not retriable'
do
let
(
:exception
)
{
StandardError
.
new
}
before
do
allow
(
label
).
to
receive
(
:save!
).
and_raise
(
exception
)
end
it
'raise the exception'
do
aggregate_failures
do
expect
(
label
).
to
receive
(
:save!
).
once
expect
(
subject
).
not_to
receive
(
:log_import_failure
)
expect
{
perform_retry
}.
to
raise_exception
(
exception
)
end
it
'raise the exception'
,
:aggregate_failures
do
expect
(
label
).
to
receive
(
:save!
).
once
.
and_raise
(
exception
)
expect
(
subject
).
not_to
receive
(
:log_import_failure
)
expect
{
perform_retry
}.
to
raise_exception
(
exception
)
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