diff options
Diffstat (limited to 'spec/lib/peek/views/active_record_spec.rb')
-rw-r--r-- | spec/lib/peek/views/active_record_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/peek/views/active_record_spec.rb b/spec/lib/peek/views/active_record_spec.rb index 7bc15f40065..fc768bdcb82 100644 --- a/spec/lib/peek/views/active_record_spec.rb +++ b/spec/lib/peek/views/active_record_spec.rb @@ -61,7 +61,7 @@ RSpec.describe Peek::Views::ActiveRecord, :request_store do end it 'includes db role data and db_config_name name' do - Timecop.freeze(2021, 2, 23, 10, 0) do + travel_to(Time.utc(2021, 2, 23, 10, 0)) do ActiveSupport::Notifications.publish('sql.active_record', Time.current, Time.current + 1.second, '1', event_1) ActiveSupport::Notifications.publish('sql.active_record', Time.current, Time.current + 2.seconds, '2', event_2) ActiveSupport::Notifications.publish('sql.active_record', Time.current, Time.current + 3.seconds, '3', event_3) |