1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
# frozen_string_literal: true
require "simplecov"
require "simplecov-console"
if ENV["MEASURE_COVERAGE"]
SimpleCov.start do
command_name "rails#{ENV["RAILS_VERSION"]}-ruby#{ENV["RUBY_VERSION"]}" if ENV["RUBY_VERSION"]
formatter SimpleCov::Formatter::Console
end
end
require "bundler/setup"
# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
require "view_component/deprecation"
ViewComponent::Deprecation.behavior = :silence
require File.expand_path("../sandbox/config/environment.rb", __FILE__)
require "rspec/rails"
RSpec.configure do |config|
config.include ViewComponent::TestHelpers
end
|