Commit a3ec58fa authored by Robert May's avatar Robert May

Remove freeze_time

parent c0980215
...@@ -32,14 +32,12 @@ RSpec.describe ResourceEvents::ChangeStateService do ...@@ -32,14 +32,12 @@ RSpec.describe ResourceEvents::ChangeStateService do
end end
it "sets the created_at timestamp from the system_note_timestamp" do 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) described_class.new(user: user, resource: resource).execute(status: state, mentionable_source: source)
event = resource.resource_state_events.last event = resource.resource_state_events.last
expect(event.created_at).to eq(Time.at(43).utc) expect(event.created_at).to eq(Time.at(43).utc)
end
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment