Skip to content

Commit

Permalink
Remove reference to Timecop from spec_helper.rb
Browse files Browse the repository at this point in the history
Follow-up to #351

Now that `Timecop` has been removed, we no longer need to configure
RSpec to use it.
  • Loading branch information
stevepolitodesign committed Jan 12, 2024
1 parent 55cb5c2 commit 05f05ac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions spec/features/new_project_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
4 changes: 0 additions & 4 deletions templates/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require "webmock/rspec"
require "timecop"

# http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
Expand All @@ -20,6 +19,3 @@
allow_localhost: true,
allow: "chromedriver.storage.googleapis.com"
)

# Only allow Timecop with block syntax
Timecop.safe_mode = true

0 comments on commit 05f05ac

Please sign in to comment.