Skip to content

Commit

Permalink
Use ActiveSupport's Testing TimeHelpers
Browse files Browse the repository at this point in the history
  • Loading branch information
kdp-cloud committed Oct 2, 2024
1 parent bbacf03 commit c88d4d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unit/dashboard_stats_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
require 'test_helper'

class DashboardStatsTest < ActiveSupport::TestCase
def setup
travel_to Time.zone.local(2024, 9, 15, 12, 0, 0)
end

def teardown
Time.current
end

test 'clear cache' do
suffixes = %w[activity contributions all_asset_accessibility contributor_activity]
# admin
Expand Down

0 comments on commit c88d4d2

Please sign in to comment.