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
aa4b20ed
Commit
aa4b20ed
authored
Dec 01, 2020
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added spec to diff batch for feature flag enabled
parent
b77fd28d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/lib/gitlab/diff/file_collection/merge_request_diff_batch_spec.rb
...lab/diff/file_collection/merge_request_diff_batch_spec.rb
+12
-0
No files found.
spec/lib/gitlab/diff/file_collection/merge_request_diff_batch_spec.rb
View file @
aa4b20ed
...
@@ -101,6 +101,18 @@ RSpec.describe Gitlab::Diff::FileCollection::MergeRequestDiffBatch do
...
@@ -101,6 +101,18 @@ RSpec.describe Gitlab::Diff::FileCollection::MergeRequestDiffBatch do
expect
(
collection
.
diff_files
.
map
(
&
:new_path
)).
to
eq
(
expected_batch_files
)
expect
(
collection
.
diff_files
.
map
(
&
:new_path
)).
to
eq
(
expected_batch_files
)
end
end
end
end
context
'with diffs gradual load feature flag enabled'
do
let
(
:batch_page
)
{
0
}
before
do
stub_feature_flags
(
diffs_gradual_load:
true
)
end
it
'returns correct diff files'
do
expect
(
subject
.
diffs
.
map
(
&
:new_path
)).
to
eq
(
diff_files_relation
.
page
(
1
).
per
(
batch_size
).
map
(
&
:new_path
))
end
end
end
end
it_behaves_like
'unfoldable diff'
do
it_behaves_like
'unfoldable diff'
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