Commit c0980215 authored by Robert May's avatar Robert May

Fix rubocop errors

parent a2e358ae
......@@ -32,13 +32,13 @@ RSpec.describe ResourceEvents::ChangeStateService do
end
it "sets the created_at timestamp from the system_note_timestamp" do
Timecop.freeze do
resource.system_note_timestamp = Time.at(43)
freeze_time 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
......
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