CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/zeitwerk_compliance_spec.rb
Views: 1903
1
# frozen_string_literal: true
2
3
require 'spec_helper'
4
5
# https://github.com/rails/rails/blob/0fec9536ca43e209064e60f48b0def6bfe539fe2/guides/source/classic_to_zeitwerk_howto.md#rspec
6
RSpec.describe 'ZeitwerkCompliance' do
7
it 'loads all files without errors' do
8
expect do
9
# Ensure we've configured zeitwerk
10
require 'msfenv'
11
Zeitwerk::Loader.eager_load_all
12
end.not_to raise_error
13
end
14
end
15
16