# encoding: utf-8 require 'dry-importer' Dir[Pathname(__FILE__).dirname.join('support/**/*.rb').to_s].each do |file| require file end # Namespace holding all objects created during specs module Test def self.remove_constants constants.each(&method(:remove_const)) end end RSpec.configure do |config| config.after do Test.remove_constants end end