diff --git a/spec/requests/support_users/service_data/jobseeker_profiles_spec.rb b/spec/requests/support_users/service_data/jobseeker_profiles_spec.rb index a06720b4ca..f02c8c9078 100644 --- a/spec/requests/support_users/service_data/jobseeker_profiles_spec.rb +++ b/spec/requests/support_users/service_data/jobseeker_profiles_spec.rb @@ -28,11 +28,13 @@ end it "gets their access to a Jobseeker Profile logged" do - allow(Rails.logger).to receive(:info).with(anything) - expect(Rails.logger).to receive(:info) - .with("[Service Data] #{support_user.email} accessed Profile ID #{jobseeker_profile.id} at #{Time.current}") + freeze_time do + allow(Rails.logger).to receive(:info).with(anything) + expect(Rails.logger).to receive(:info) + .with("[Service Data] #{support_user.email} accessed Profile ID #{jobseeker_profile.id} at #{Time.current}") - get support_users_service_data_jobseeker_profile_path(jobseeker_profile) + get support_users_service_data_jobseeker_profile_path(jobseeker_profile) + end end end