diff --git a/Gemfile b/Gemfile index ee40ab2f51..1077041082 100644 --- a/Gemfile +++ b/Gemfile @@ -199,7 +199,6 @@ group :test do gem 'whenever-test' # Easy installation and use of web drivers to run system tests with browsers gem 'webdrivers' - gem 'timecop', '~> 0.9.10' end group :test, :development do diff --git a/Gemfile.lock b/Gemfile.lock index deedcaf176..df1c55d250 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -892,7 +892,6 @@ GEM tilt (2.0.10) time (0.2.2) date - timecop (0.9.10) timeout (0.4.1) tzinfo (2.0.6) concurrent-ruby (~> 1.0) @@ -1096,7 +1095,6 @@ DEPENDENCIES terrapin terser (~> 1.1, >= 1.1.1) test-prof - timecop (~> 0.9.10) unicorn-rails uuid (~> 2.3) validate_url diff --git a/test/unit/dashboard_stats_test.rb b/test/unit/dashboard_stats_test.rb index 66836976d6..4ae7e4f04e 100644 --- a/test/unit/dashboard_stats_test.rb +++ b/test/unit/dashboard_stats_test.rb @@ -1,15 +1,6 @@ require 'test_helper' -require 'timecop' -class DashboardStatsTest < ActiveSupport::TestCase - - setup do - Timecop.freeze(Time.local(2024, 9, 15, 12, 0, 0)) - end - - teardown do - Timecop.return - end +class DashboardStatsTest < ActiveSupport::TestCase test 'clear cache' do suffixes = %w[activity contributions all_asset_accessibility contributor_activity] # admin