From 05f05acfa71e9cc5f52a015db504b8bad77b4fff Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Fri, 12 Jan 2024 16:49:22 -0500 Subject: [PATCH] Remove reference to `Timecop` from `spec_helper.rb` Follow-up to #351 Now that `Timecop` has been removed, we no longer need to configure RSpec to use it. --- spec/features/new_project_spec.rb | 5 ----- templates/spec_helper.rb | 4 ---- 2 files changed, 9 deletions(-) diff --git a/spec/features/new_project_spec.rb b/spec/features/new_project_spec.rb index f232b958e..77d5e831f 100644 --- a/spec/features/new_project_spec.rb +++ b/spec/features/new_project_spec.rb @@ -271,11 +271,6 @@ expect(gemfile).to match(/sassc-rails/) end - it "configures Timecop safe mode" do - spec_helper = read_project_file(%w[spec spec_helper.rb]) - expect(spec_helper).to match(/Timecop.safe_mode = true/) - end - it "adds and configures a bundler strategy for css and js" do gemfile = read_project_file("Gemfile") diff --git a/templates/spec_helper.rb b/templates/spec_helper.rb index 570dacc82..52dce29a7 100644 --- a/templates/spec_helper.rb +++ b/templates/spec_helper.rb @@ -1,5 +1,4 @@ require "webmock/rspec" -require "timecop" # http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| @@ -20,6 +19,3 @@ allow_localhost: true, allow: "chromedriver.storage.googleapis.com" ) - -# Only allow Timecop with block syntax -Timecop.safe_mode = true