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
6f387678
Commit
6f387678
authored
Feb 07, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
95ed999b
232ae06a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
spec/workers/post_receive_spec.rb
spec/workers/post_receive_spec.rb
+11
-4
No files found.
spec/workers/post_receive_spec.rb
View file @
6f387678
...
...
@@ -141,11 +141,18 @@ describe PostReceive do
let
(
:gl_repository
)
{
"wiki-
#{
project
.
id
}
"
}
it
'updates project activity'
do
described_class
.
new
.
perform
(
gl_repository
,
key_id
,
base64_changes
)
# Force Project#set_timestamps_for_create to initialize timestamps
project
expect
{
project
.
reload
}
.
to
change
(
project
,
:last_activity_at
)
.
and
change
(
project
,
:last_repository_updated_at
)
# MySQL drops milliseconds in the timestamps, so advance at least
# a second to ensure we see changes.
Timecop
.
freeze
(
1
.
second
.
from_now
)
do
expect
do
described_class
.
new
.
perform
(
gl_repository
,
key_id
,
base64_changes
)
project
.
reload
end
.
to
change
(
project
,
:last_activity_at
)
.
and
change
(
project
,
:last_repository_updated_at
)
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