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
c0980215
Commit
c0980215
authored
Dec 17, 2020
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop errors
parent
a2e358ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/services/resource_events/change_state_service_spec.rb
spec/services/resource_events/change_state_service_spec.rb
+3
-3
No files found.
spec/services/resource_events/change_state_service_spec.rb
View file @
c0980215
...
...
@@ -32,13 +32,13 @@ RSpec.describe ResourceEvents::ChangeStateService do
end
it
"sets the created_at timestamp from the system_note_timestamp"
do
Timecop
.
freez
e
do
resource
.
system_note_timestamp
=
Time
.
at
(
43
)
freeze_tim
e
do
resource
.
system_note_timestamp
=
Time
.
at
(
43
)
.
utc
described_class
.
new
(
user:
user
,
resource:
resource
).
execute
(
status:
state
,
mentionable_source:
source
)
event
=
resource
.
resource_state_events
.
last
expect
(
event
.
created_at
).
to
eq
(
Time
.
at
(
43
))
expect
(
event
.
created_at
).
to
eq
(
Time
.
at
(
43
)
.
utc
)
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