Skip to content

Commit

Permalink
Fix spec failure invovling time (#12617)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanshean authored Dec 2, 2024
1 parent 657cab9 commit 955b75d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions services/QuillLMS/spec/queries/student_dashboard_metrics_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,7 @@
describe StudentDashboardMetrics do
before do
travel_to 1.month.from_now if Time.current.month == 7

now = Time.current
wednesday_noon = now.beginning_of_week(:wednesday).noon
first_of_month = now.beginning_of_month

if wednesday_noon - 7.days < first_of_month
travel_to wednesday_noon + 1.week
else
travel_to wednesday_noon
end
travel_to(Time.current.change(day: 10))
end

after do
Expand Down

0 comments on commit 955b75d

Please sign in to comment.