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
b267b3eb
Commit
b267b3eb
authored
Nov 16, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust change_access_spec.rb conflict
parent
7d8d774d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
spec/lib/gitlab/checks/change_access_spec.rb
spec/lib/gitlab/checks/change_access_spec.rb
+11
-12
No files found.
spec/lib/gitlab/checks/change_access_spec.rb
View file @
b267b3eb
...
@@ -166,10 +166,8 @@ describe Gitlab::Checks::ChangeAccess do
...
@@ -166,10 +166,8 @@ describe Gitlab::Checks::ChangeAccess do
end
end
context
'LFS integrity check'
do
context
'LFS integrity check'
do
it
'fails if any LFS blobs are missing'
do
let
(
:blob_object
)
{
project
.
repository
.
blob_at_branch
(
'lfs'
,
'files/lfs/lfs_object.iso'
)
}
allow_any_instance_of
(
Gitlab
::
Checks
::
LfsIntegrity
).
to
receive
(
:objects_missing?
).
and_return
(
true
)
<<<<<<<
HEAD
before
do
before
do
allow_any_instance_of
(
Gitlab
::
Git
::
RevList
).
to
receive
(
:new_objects
)
do
|&
lazy_block
|
allow_any_instance_of
(
Gitlab
::
Git
::
RevList
).
to
receive
(
:new_objects
)
do
|&
lazy_block
|
lazy_block
.
call
([
blob_object
.
id
])
lazy_block
.
call
([
blob_object
.
id
])
...
@@ -182,15 +180,19 @@ describe Gitlab::Checks::ChangeAccess do
...
@@ -182,15 +180,19 @@ describe Gitlab::Checks::ChangeAccess do
subject
subject
end
end
=======
expect
{
subject
.
exec
}.
to
raise_error
(
Gitlab
::
GitAccess
::
UnauthorizedError
,
/LFS objects are missing/
)
>>>>>>>
upstream
/
master
end
end
it
'succeeds if LFS objects have already been uploaded'
do
context
'with LFS enabled'
do
allow_any_instance_of
(
Gitlab
::
Checks
::
LfsIntegrity
).
to
receive
(
:objects_missing?
).
and_return
(
false
)
before
do
allow
(
project
).
to
receive
(
:lfs_enabled?
).
and_return
(
true
)
end
context
'deletion'
do
let
(
:changes
)
{
{
oldrev:
oldrev
,
ref:
ref
}
}
it
'skips integrity check'
do
expect_any_instance_of
(
Gitlab
::
Git
::
RevList
).
not_to
receive
(
:new_objects
)
<<<<<<<
HEAD
subject
subject
end
end
end
end
...
@@ -581,9 +583,6 @@ describe Gitlab::Checks::ChangeAccess do
...
@@ -581,9 +583,6 @@ describe Gitlab::Checks::ChangeAccess do
.
and_call_original
.
and_call_original
expect
{
subject
}.
not_to
raise_error
expect
{
subject
}.
not_to
raise_error
end
end
=======
expect
{
subject
.
exec
}.
not_to
raise_error
>>>>>>>
upstream
/
master
end
end
end
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