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
91cedd25
Commit
91cedd25
authored
Jul 02, 2018
by
Imre Farkas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflict in spec/workers/project_cache_worker_spec.rb
parent
9ec1644f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
spec/workers/project_cache_worker_spec.rb
spec/workers/project_cache_worker_spec.rb
+0
-20
No files found.
spec/workers/project_cache_worker_spec.rb
View file @
91cedd25
...
...
@@ -11,34 +11,19 @@ describe ProjectCacheWorker do
before
do
stub_exclusive_lease
(
lease_key
,
timeout:
lease_timeout
)
<<<<<<<
HEAD
allow
(
Project
).
to
receive
(
:find_by
)
.
with
(
id:
project
.
id
)
.
and_return
(
project
)
end
=======
allow
(
Project
).
to
receive
(
:find_by
)
.
with
(
id:
project
.
id
)
.
and_return
(
project
)
end
>>>>>>>
upstream
/
master
describe
'#perform'
do
context
'with a non-existing project'
do
it
'does not update statistic'
do
allow
(
Project
).
to
receive
(
:find_by
).
with
(
id:
-
1
).
and_return
(
nil
)
<<<<<<<
HEAD
expect
(
subject
).
not_to
receive
(
:update_statistics
)
=======
expect
(
subject
).
not_to
receive
(
:update_statistics
)
>>>>>>>
upstream
/
master
subject
.
perform
(
-
1
)
end
end
...
...
@@ -66,7 +51,6 @@ describe ProjectCacheWorker do
expect
(
project
.
repository
).
to
receive
(
:refresh_method_caches
)
.
with
(
%i(readme)
)
.
and_call_original
<<<<<<<
HEAD
subject
.
perform
(
project
.
id
,
%w(readme)
)
end
...
...
@@ -85,10 +69,6 @@ describe ProjectCacheWorker do
subject
.
perform
(
project
.
id
)
end
=======
subject
.
perform
(
project
.
id
,
%w(readme)
)
>>>>>>>
upstream
/
master
end
context
'with plain readme'
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