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
a3ec58fa
Commit
a3ec58fa
authored
Dec 17, 2020
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove freeze_time
parent
c0980215
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
spec/services/resource_events/change_state_service_spec.rb
spec/services/resource_events/change_state_service_spec.rb
+4
-6
No files found.
spec/services/resource_events/change_state_service_spec.rb
View file @
a3ec58fa
...
...
@@ -32,14 +32,12 @@ RSpec.describe ResourceEvents::ChangeStateService do
end
it
"sets the created_at timestamp from the system_note_timestamp"
do
freeze_time
do
resource
.
system_note_timestamp
=
Time
.
at
(
43
).
utc
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
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
).
utc
)
end
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