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
353924ef
Commit
353924ef
authored
Apr 14, 2022
by
Eduardo Bonet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds missing coverage
parent
d580bea6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
spec/lib/gitlab/diff/custom_diff_spec.rb
spec/lib/gitlab/diff/custom_diff_spec.rb
+8
-0
No files found.
spec/lib/gitlab/diff/custom_diff_spec.rb
View file @
353924ef
...
@@ -77,6 +77,14 @@ RSpec.describe Gitlab::Diff::CustomDiff do
...
@@ -77,6 +77,14 @@ RSpec.describe Gitlab::Diff::CustomDiff do
end
end
end
end
end
end
context
'when invalid ipynb'
do
it
'returns nil'
do
expect
(
ipynb_blob
).
to
receive
(
:data
).
and_return
(
'invalid ipynb'
)
expect
(
described_class
.
preprocess_before_diff
(
ipynb_blob
.
path
,
nil
,
ipynb_blob
)).
to
be_nil
end
end
end
end
describe
'#transformed_blob_data'
do
describe
'#transformed_blob_data'
do
...
...
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