38d0aff7f8
simplecov added, docker-compose updated, test_helper updated
25 lines
549 B
Ruby
25 lines
549 B
Ruby
# frozen_string_literal: true
|
|
|
|
ENV['RAILS_ENV'] ||= 'test'
|
|
require_relative '../config/environment'
|
|
require 'rails/test_help'
|
|
|
|
if ENV['RAILS_ENV'] == 'test'
|
|
require 'simplecov'
|
|
SimpleCov.start 'rails' do
|
|
add_filter "/app/channels"
|
|
add_filter "/app/mailers"
|
|
add_filter "/app/jobs"
|
|
end
|
|
puts 'required simplecov'
|
|
end
|
|
|
|
module ActiveSupport
|
|
class TestCase
|
|
# 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
|
|
end
|