文件操作 - spec_helper.rb.tt
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/3.2.0/bundler/templates/newgem/spec/spec_helper.rb.tt
编辑文件内容
# frozen_string_literal: true require "<%= config[:namespaced_path] %>" RSpec.configure do |config| # Enable flags like --only-failures and --next-failure config.example_status_persistence_file_path = ".rspec_status" # Disable RSpec exposing methods globally on `Module` and `main` config.disable_monkey_patching! config.expect_with :rspec do |c| c.syntax = :expect end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件