From 78079b05989de1283e48fb9d679d789c8936f261 Mon Sep 17 00:00:00 2001 From: fiveNinePlusR Date: Thu, 12 Sep 2024 19:42:05 -0700 Subject: [PATCH] change test to be more reliable in CI --- spec/requests/api/v1/user_submissions_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/requests/api/v1/user_submissions_controller_spec.rb b/spec/requests/api/v1/user_submissions_controller_spec.rb index e7da5a5a..45a4ac53 100644 --- a/spec/requests/api/v1/user_submissions_controller_spec.rb +++ b/spec/requests/api/v1/user_submissions_controller_spec.rb @@ -52,7 +52,7 @@ FactoryBot.create(:user_submission, created_at: Time.now.strftime('%Y-%m-%d'), location: location, lat: location.lat, lon: location.lon, submission_type: UserSubmission::NEW_SCORE_TYPE) FactoryBot.create(:user_submission, created_at: Time.now.strftime('%Y-%m-%d'), location: location, lat: location.lat, lon: location.lon, submission_type: UserSubmission::NEW_LMX_TYPE) - FactoryBot.create(:user_submission, created_at: (Date.today - 32).strftime('%Y-%m-%d'), location: location, lat: location.lat, lon: location.lon, submission_type: UserSubmission::NEW_LMX_TYPE) + FactoryBot.create(:user_submission, created_at: (1.month.ago - 1.day).strftime('%Y-%m-%d'), location: location, lat: location.lat, lon: location.lon, submission_type: UserSubmission::NEW_LMX_TYPE) get '/api/v1/user_submissions/list_within_range.json', params: { lat: '45.6008356', lon: '-122.760606' }