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
9ea03646
Commit
9ea03646
authored
May 15, 2020
by
Sean Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Time.new calls
parent
3970e19f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ee/spec/services/ee/audit_events/bulk_insert_service_spec.rb
ee/spec/services/ee/audit_events/bulk_insert_service_spec.rb
+1
-1
ee/spec/services/ee/audit_events/repository_push_audit_event_service_spec.rb
.../audit_events/repository_push_audit_event_service_spec.rb
+1
-1
spec/services/ci/register_job_service_spec.rb
spec/services/ci/register_job_service_spec.rb
+1
-1
No files found.
ee/spec/services/ee/audit_events/bulk_insert_service_spec.rb
View file @
9ea03646
...
...
@@ -14,7 +14,7 @@ describe EE::AuditEvents::BulkInsertService do
EE
::
AuditEvents
::
RepositoryPushAuditEventService
.
new
(
user
,
entity
,
target_ref
,
from
,
to
)
end
end
let
(
:timestamp
)
{
Time
.
new
.
in_time_zone
(
2019
,
10
,
10
)
}
let
(
:timestamp
)
{
Time
.
zone
.
local
(
2019
,
10
,
10
)
}
let
(
:attrs
)
do
{
author_id:
user
.
id
,
...
...
ee/spec/services/ee/audit_events/repository_push_audit_event_service_spec.rb
View file @
9ea03646
...
...
@@ -12,7 +12,7 @@ describe EE::AuditEvents::RepositoryPushAuditEventService do
let
(
:service
)
{
described_class
.
new
(
user
,
entity
,
target_ref
,
from
,
to
)
}
describe
'#attributes'
do
let
(
:timestamp
)
{
Time
.
new
.
in_time_zone
(
2019
,
10
,
10
)
}
let
(
:timestamp
)
{
Time
.
zone
.
local
(
2019
,
10
,
10
)
}
let
(
:attrs
)
do
{
author_id:
user
.
id
,
...
...
spec/services/ci/register_job_service_spec.rb
View file @
9ea03646
...
...
@@ -571,7 +571,7 @@ module Ci
end
describe
'#register_success'
do
let!
(
:current_time
)
{
Time
.
new
.
in_time_zone
(
2018
,
4
,
5
,
14
,
0
,
0
)
}
let!
(
:current_time
)
{
Time
.
zone
.
local
(
2018
,
4
,
5
,
14
,
0
,
0
)
}
let!
(
:attempt_counter
)
{
double
(
'Gitlab::Metrics::NullMetric'
)
}
let!
(
:job_queue_duration_seconds
)
{
double
(
'Gitlab::Metrics::NullMetric'
)
}
...
...
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