spec/spec_helper.rb in lokalise_rails-0.2.0 vs spec/spec_helper.rb in lokalise_rails-1.0.0
- old
+ new
@@ -1,9 +1,10 @@
# frozen_string_literal: true
require 'dotenv/load'
require 'simplecov'
+
SimpleCov.start 'rails' do
add_filter 'spec/'
add_filter '.github/'
add_filter 'lib/generators/templates/'
add_filter 'lib/lokalise_rails/version'
@@ -19,16 +20,21 @@
# Configure Rails Environment
ENV['RAILS_ENV'] = 'test'
require_relative '../spec/dummy/config/environment'
-ActiveRecord::Migrator.migrations_paths = [File.expand_path('../spec/dummy/db/migrate', __dir__)]
+# ActiveRecord::Migrator.migrations_paths = [File.expand_path('../spec/dummy/db/migrate', __dir__)]
ENV['RAILS_ROOT'] ||= "#{File.dirname(__FILE__)}../../../spec/dummy"
require 'rspec/rails'
RSpec.configure do |config|
- config.include FileUtils
+ config.include FileManager
config.include RakeUtils
end
+# rubocop:disable Style/MixinUsage
+include FileManager
+# rubocop:enable Style/MixinUsage
+
+add_config!
Rails.application.load_tasks