From eaf8df8084ce23e4926703c812b53c0ce763758b Mon Sep 17 00:00:00 2001 From: Peter Cai <222655+pcai@users.noreply.github.com> Date: Mon, 30 Sep 2024 14:34:59 +0000 Subject: [PATCH] reduce test verbosity; remove duplicate require --- test/integration/tasks_test.rb | 2 -- test/test_helper.rb | 2 -- 2 files changed, 4 deletions(-) diff --git a/test/integration/tasks_test.rb b/test/integration/tasks_test.rb index 2a5ecee..c32911f 100644 --- a/test/integration/tasks_test.rb +++ b/test/integration/tasks_test.rb @@ -14,7 +14,6 @@ def teardown end def run!(cmd) - puts "Running: #{cmd}" out = `#{cmd}` raise "Could not run #{cmd}, output: #{out}" unless $?.success? out @@ -25,7 +24,6 @@ def rake(cmd, options = {}) env = options[:env] || {} env_string = env.map {|key, value| "#{key.shellescape}=#{value.to_s.shellescape}" }.join(" ") cmd = "env #{env_string} bundle exec rake -f perf.rake #{cmd} --trace" - puts "Running: #{cmd}" result = Bundler.with_original_env do # Ensure relative BUNDLE_GEMFILE is expanded so path is still correct after cd ENV['BUNDLE_GEMFILE'] = File.expand_path(ENV['BUNDLE_GEMFILE']) if ENV['BUNDLE_GEMFILE'] diff --git a/test/test_helper.rb b/test/test_helper.rb index 69bd40d..fcc9ef5 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -6,7 +6,6 @@ # Configure Rails Envinronment ENV["RAILS_ENV"] = "test" - require "ruby2_keywords" if RUBY_VERSION < "2.7" require 'rails' @@ -18,7 +17,6 @@ require 'derailed_benchmarks' require File.expand_path("../rails_app/config/environment.rb", __FILE__) -require "rails/test_help" ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true