4bbd93ded1
Adding the .ruby-verison file triggered previously un-run cops, specifically: This cop is designed to help upgrade to Ruby 3.0. It will add the comment `# frozen_string_literal: true` to the top of files to enable frozen string literals. Frozen string literals will be default in Ruby 3.0. The comment will be added below a shebang and encoding comment. The frozen string literal comment is only valid in Ruby 2.3+. More info on rubocop [Automatic-Corrections](https://github.com/bbatsov/rubocop/wiki/Automatic-Corrections)
28 lines
835 B
Ruby
28 lines
835 B
Ruby
# frozen_string_literal: true
|
|
ENV['RAILS_ENV'] ||= 'test'
|
|
|
|
# https://github.com/colszowka/simplecov
|
|
require 'simplecov'
|
|
SimpleCov.start 'rails' do
|
|
add_group 'Models', %w(app/models app/validators)
|
|
add_group 'Services & Workers', %w(app/workers app/services)
|
|
add_group "Jobs", 'app/jobs'
|
|
end
|
|
|
|
require File.expand_path('../../config/environment', __FILE__)
|
|
require 'rails/test_help'
|
|
require "minitest/autorun"
|
|
require 'minitest/reporters'
|
|
Dir[Rails.root.join("test/test_helpers/**/*.rb")].each { |f| require f }
|
|
|
|
Minitest::Reporters.use! [Minitest::Reporters::DefaultReporter.new(color: true)]
|
|
|
|
class ActiveSupport::TestCase
|
|
ActiveRecord::Migration.check_pending!
|
|
|
|
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
|
fixtures :all
|
|
|
|
# Add more helper methods to be used by all tests here...
|
|
end
|